pub fn best_mount_index<'a, I>(path: &str, mounts: I) -> Option<usize>Expand description
Returns the longest matching mount index for an absolute request path.
§Parameters
path: Input consumed bycrate::best_mount_index.mounts: Input consumed bycrate::best_mount_index.'a str: Input consumed bycrate::best_mount_index.
§Returns
Returns Some when crate::best_mount_index can produce a value and None otherwise.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::best_mount_index.
§Examples
ⓘ
let _result = pharos_runtime_core::best_mount_index(std::path::Path::new("fixture.json"), todo!(), todo!());§Related
cratefor adjacent helpers that share the same runtime surface.