pub enum MatchKind {
Always,
Prefix,
WildcardMatch,
Verbatim,
}
Expand description
Describe how a pathspec pattern matched.
Variants§
Always
The match happened because there wasn’t any pattern, which matches all, or because there was a nil pattern or one with an empty path. Thus this is not a match by merit.
Prefix
The first part of a pathspec matches, like dir/
that matches dir/a
.
WildcardMatch
The whole pathspec matched and used a wildcard match, like a/*
matching a/file
.
Verbatim
The entire pathspec matched, letter by letter, e.g. a/file
matching a/file
.
Trait Implementations§
Source§impl Ord for MatchKind
impl Ord for MatchKind
Source§impl PartialOrd for MatchKind
impl PartialOrd for MatchKind
impl Copy for MatchKind
impl Eq for MatchKind
impl StructuralPartialEq for MatchKind
Auto Trait Implementations§
impl Freeze for MatchKind
impl RefUnwindSafe for MatchKind
impl Send for MatchKind
impl Sync for MatchKind
impl Unpin for MatchKind
impl UnwindSafe for MatchKind
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