Skip to main content

route_pattern_specificity_score

Function route_pattern_specificity_score 

Source
pub fn route_pattern_specificity_score(pattern: &str) -> usize
Expand description

Scores a route pattern by its number of literal segments.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::dynamic::route_pattern_specificity_score.

§Performance

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

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::route_pattern_specificity_score(todo!());