Enum broot::pattern::Pattern [−][src]
pub enum Pattern { None, NameExact(ExactPattern), NameFuzzy(FuzzyPattern), NameRegex(RegexPattern), NameTokens(TokPattern), PathExact(ExactPattern), PathFuzzy(FuzzyPattern), PathRegex(RegexPattern), PathTokens(TokPattern), ContentExact(ContentExactPattern), ContentRegex(ContentRegexPattern), Composite(CompositePattern), }
Expand description
a pattern for filtering and sorting files.
Variants
Tuple Fields of NameExact
0: ExactPattern
Tuple Fields of NameFuzzy
0: FuzzyPattern
Tuple Fields of NameRegex
0: RegexPattern
Tuple Fields of NameTokens
0: TokPattern
Tuple Fields of PathExact
0: ExactPattern
Tuple Fields of PathFuzzy
0: FuzzyPattern
Tuple Fields of PathRegex
0: RegexPattern
Tuple Fields of PathTokens
0: TokPattern
Tuple Fields of ContentExact
Tuple Fields of ContentRegex
Tuple Fields of Composite
Implementations
pub fn new(
raw_expr: &BeTree<PatternOperator, PatternParts>,
search_modes: &SearchModeMap
) -> Result<Self, PatternError>
find the content to show next to the name of the file when the search involved a content filtering
get the line of the first match, if any
an empty pattern is one which doesn’t discriminate (it accepts everything)
whether the scores are more than just 0 or 1. When it’s the case, the tree builder will look for more matching results in order to select the best ones.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Pattern
impl UnwindSafe for Pattern
Blanket Implementations
Mutably borrows from an owned value. Read more