Enum gix_pathspec::search::MatchKind
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)