Skip to main content

count_segments

Function count_segments 

Source
pub fn count_segments(path: &str) -> usize
Expand description

Counts slash-separated route segments.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::json_commands::count_segments.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::count_segments.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::count_segments(std::path::Path::new("fixture.json"));