Skip to main content

best_mount_index

Function best_mount_index 

Source
pub fn best_mount_index<'a, I>(path: &str, mounts: I) -> Option<usize>
where I: IntoIterator<Item = (usize, &'a str)>,
Expand description

Returns the longest matching mount index for an absolute request path.

§Parameters

§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!());
  • crate for adjacent helpers that share the same runtime surface.