pub fn pattern_matches(pattern: &str, path: &str) -> boolExpand description
Returns whether a route pattern matches a request path using bounded segments.
§Parameters
pattern: Input consumed bycrate::runtime::dynamic::pattern_matches.path: Input consumed bycrate::runtime::dynamic::pattern_matches.
§Returns
Returns true when the condition checked by crate::runtime::dynamic::pattern_matches holds and false otherwise.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::dynamic::pattern_matches.
§Examples
ⓘ
let _result = pharos_native::runtime::dynamic::pattern_matches(todo!(), std::path::Path::new("fixture.json"));§Related
crate::runtime::dynamicfor adjacent helpers that share the same runtime surface.