Struct gix_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 PatternThe glob pattern itself, like /target/*.
value: &'a TThe 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: usizeThe line at which the pattern was found in its source file, or the occurrence in which it was provided.
Trait Implementations§
source§impl<'a, T: Ord> Ord for Match<'a, T>
impl<'a, T: Ord> Ord for Match<'a, T>
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<'a, T: PartialEq> PartialEq<Match<'a, T>> for Match<'a, T>
impl<'a, T: PartialEq> PartialEq<Match<'a, T>> for Match<'a, T>
source§impl<'a, T: PartialOrd> PartialOrd<Match<'a, T>> for Match<'a, T>
impl<'a, T: PartialOrd> PartialOrd<Match<'a, T>> for Match<'a, T>
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 more