pub(super) enum Matcher {
True,
NameSub {
finder: Finder<'static>,
folded: bool,
},
NamePrefix {
bytes: Vec<u8>,
folded: bool,
},
NameSuffix {
bytes: Vec<u8>,
folded: bool,
},
PathSub {
finder: Finder<'static>,
folded: bool,
},
NameRegex {
re: Regex,
},
PathRegex {
re: Regex,
},
Ext {
exts: Vec<Vec<u8>>,
},
Size {
min: u64,
max: u64,
},
Mtime {
min: i64,
max: i64,
},
IsDir(bool),
}Variants§
True
Empty needle — matches everything.
NameSub
Substring in the name. folded selects the lower pool + folded needle.
NamePrefix
Name starts with the bytes (lit*).
NameSuffix
Name ends with the bytes (*.lit).
PathSub
Substring in the full path.
NameRegex
Anchored wildcard or user regex over the (original) name bytes.
Fields
§
re: RegexPathRegex
Unanchored wildcard/regex over the (original) full-path bytes.
Fields
§
re: RegexExt
Extension equals any of these folded byte strings.
Size
Mtime
Inclusive FILETIME tick range.
IsDir(bool)
Implementations§
Auto Trait Implementations§
impl Freeze for Matcher
impl RefUnwindSafe for Matcher
impl Send for Matcher
impl Sync for Matcher
impl Unpin for Matcher
impl UnsafeUnpin for Matcher
impl UnwindSafe for Matcher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more