Skip to main content

PatternFilter

Trait PatternFilter 

Source
pub trait PatternFilter {
    // Required method
    fn accept(&self, scored: &ScoredPattern<String, String>) -> bool;
}
Expand description

Decides whether a scored pattern is worth keeping.

Required Methods§

Source

fn accept(&self, scored: &ScoredPattern<String, String>) -> bool

Returns true if the pattern should be kept.

Implementors§