Struct gix_ignore::search::Match
source · pub struct Match<'a> {
pub pattern: &'a Pattern,
pub source: Option<&'a Path>,
pub sequence_number: usize,
}
Expand description
Describes a matching pattern within a search for ignored paths.
Fields§
§pattern: &'a Pattern
The glob pattern itself, like /target/*
.
source: Option<&'a Path>
The path to the source from which the pattern was loaded, or None
if it was specified by other means.
sequence_number: usize
The line at which the pattern was found in its source
file, or the occurrence in which it was provided.
Trait Implementations§
source§impl<'a> Ord for Match<'a>
impl<'a> Ord for Match<'a>
source§impl<'a> PartialEq<Match<'a>> for Match<'a>
impl<'a> PartialEq<Match<'a>> for Match<'a>
source§impl<'a> PartialOrd<Match<'a>> for Match<'a>
impl<'a> PartialOrd<Match<'a>> 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> StructuralEq for Match<'a>
impl<'a> StructuralPartialEq for Match<'a>
Auto Trait Implementations§
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