Skip to main content

matches

Function matches 

Source
pub fn matches(pattern: &Pattern, m: &Moniker) -> bool
Expand description

Matches pattern against the segments of m. ** is greedy non-deterministic — recursive backtracking, O(2^n) worst case but moniker depth ≤ ~10 in practice.