pub struct Match<'a> {
pub pattern: &'a Pattern,
pub sequence_number: usize,
pub kind: MatchKind,
}
Available on crate feature
attributes
only.Expand description
Describes a matching pattern within a search for ignored paths.
Fields§
§pattern: &'a Pattern
The matching search specification, which contains the pathspec as well.
sequence_number: usize
The number of the sequence the matching pathspec was in, or the line of pathspec file it was read from if Search::source is not None
.
kind: MatchKind
How the pattern matched.
Implementations§
Trait Implementations§
source§impl<'a> Ord for Match<'a>
impl<'a> Ord for Match<'a>
source§impl<'a> PartialEq for Match<'a>
impl<'a> PartialEq for Match<'a>
source§impl<'a> PartialOrd for Match<'a>
impl<'a> PartialOrd for Match<'a>
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<'a> Eq for Match<'a>
impl<'a> StructuralPartialEq for Match<'a>
Auto Trait Implementations§
impl<'a> Freeze for Match<'a>
impl<'a> RefUnwindSafe for Match<'a>
impl<'a> Send for Match<'a>
impl<'a> Sync for Match<'a>
impl<'a> Unpin for Match<'a>
impl<'a> UnwindSafe for Match<'a>
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
)