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
NameExact(ExactPattern)
NameFuzzy(FuzzyPattern)
NameRegex(RegexPattern)
NameTokens(TokPattern)
PathExact(ExactPattern)
PathFuzzy(FuzzyPattern)
PathRegex(RegexPattern)
PathTokens(TokPattern)
ContentExact(ContentExactPattern)
ContentRegex(ContentRegexPattern)
Composite(CompositePattern)
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
pub fn vzip(self) -> V