Skip to main content

pattern_count

Function pattern_count 

Source
pub fn pattern_count() -> usize
Expand description

Ordered prefix → compressor dispatch table (#660 CC reduction): first matching entry wins, mirroring the previous if c.starts_with(..) { return ...; } cascade exactly — including that a matched entry’s None is final, never falls through to a later entry. Registering a new CLI tool is now a one-line addition here instead of a new branch in try_specific_pattern. Number of registered shell-output patterns, for the docs drift check (#1896).