pub fn count_segments(path: &str) -> usizeExpand description
Counts slash-separated route segments.
§Parameters
path: Input consumed bycrate::runtime::json_commands::count_segments.
§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"));§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.