Struct git_attributes::Match
source · pub struct Match<'a, T> {
pub pattern: &'a Pattern,
pub value: &'a T,
pub source: Option<&'a Path>,
pub sequence_number: usize,
}
Expand description
Describes a matching value within a MatchGroup
.
Fields
pattern: &'a Pattern
The glob pattern itself, like /target/*
.
value: &'a T
The value associated with the pattern.
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
sourceimpl<'a, T: Ord> Ord for Match<'a, T>
impl<'a, T: Ord> Ord for Match<'a, T>
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a, T: PartialEq> PartialEq<Match<'a, T>> for Match<'a, T>
impl<'a, T: PartialEq> PartialEq<Match<'a, T>> for Match<'a, T>
sourceimpl<'a, T: PartialOrd> PartialOrd<Match<'a, T>> for Match<'a, T>
impl<'a, T: PartialOrd> PartialOrd<Match<'a, T>> for Match<'a, T>
sourcefn partial_cmp(&self, other: &Match<'a, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Match<'a, T>) -> Option<Ordering>
1.0.0 · sourcefn 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, T: Eq> Eq for Match<'a, T>
impl<'a, T> StructuralEq for Match<'a, T>
impl<'a, T> StructuralPartialEq for Match<'a, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Match<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Match<'a, T>where
T: Sync,
impl<'a, T> Sync for Match<'a, T>where
T: Sync,
impl<'a, T> Unpin for Match<'a, T>
impl<'a, T> UnwindSafe for Match<'a, T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more