Enum gix_dir::entry::PathspecMatch
source · pub enum PathspecMatch {
Always,
Excluded,
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.
Excluded
A match happened, but the pattern excludes everything it matches, which means this entry was excluded.
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 Clone for PathspecMatch
impl Clone for PathspecMatch
source§fn clone(&self) -> PathspecMatch
fn clone(&self) -> PathspecMatch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PathspecMatch
impl Debug for PathspecMatch
source§impl From<Match<'_>> for PathspecMatch
impl From<Match<'_>> for PathspecMatch
source§impl From<MatchKind> for PathspecMatch
impl From<MatchKind> for PathspecMatch
source§impl Hash for PathspecMatch
impl Hash for PathspecMatch
source§impl Ord for PathspecMatch
impl Ord for PathspecMatch
source§fn cmp(&self, other: &PathspecMatch) -> Ordering
fn cmp(&self, other: &PathspecMatch) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PathspecMatch
impl PartialEq for PathspecMatch
source§fn eq(&self, other: &PathspecMatch) -> bool
fn eq(&self, other: &PathspecMatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PathspecMatch
impl PartialOrd for PathspecMatch
source§fn partial_cmp(&self, other: &PathspecMatch) -> Option<Ordering>
fn partial_cmp(&self, other: &PathspecMatch) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PathspecMatch
impl Eq for PathspecMatch
impl StructuralPartialEq for PathspecMatch
Auto Trait Implementations§
impl Freeze for PathspecMatch
impl RefUnwindSafe for PathspecMatch
impl Send for PathspecMatch
impl Sync for PathspecMatch
impl Unpin for PathspecMatch
impl UnwindSafe for PathspecMatch
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)