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
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>
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
impl<'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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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