Struct git_attributes::PatternMapping
source · pub struct PatternMapping<T> {
pub pattern: Pattern,
pub value: T,
pub sequence_number: usize,
}
Expand description
An association of a pattern with its value, along with a sequence number providing a sort order in relation to its peers.
Fields§
§pattern: Pattern
The pattern itself, like /target/*
value: T
The value associated with the pattern.
sequence_number: usize
Typically the line number in the file the pattern was parsed from.
Trait Implementations§
source§impl<T: Clone> Clone for PatternMapping<T>
impl<T: Clone> Clone for PatternMapping<T>
source§fn clone(&self) -> PatternMapping<T>
fn clone(&self) -> PatternMapping<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for PatternMapping<T>
impl<T: Debug> Debug for PatternMapping<T>
source§impl<T: Hash> Hash for PatternMapping<T>
impl<T: Hash> Hash for PatternMapping<T>
source§impl<T: Ord> Ord for PatternMapping<T>
impl<T: Ord> Ord for PatternMapping<T>
source§fn cmp(&self, other: &PatternMapping<T>) -> Ordering
fn cmp(&self, other: &PatternMapping<T>) -> Ordering
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<T: PartialEq> PartialEq<PatternMapping<T>> for PatternMapping<T>
impl<T: PartialEq> PartialEq<PatternMapping<T>> for PatternMapping<T>
source§fn eq(&self, other: &PatternMapping<T>) -> bool
fn eq(&self, other: &PatternMapping<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<PatternMapping<T>> for PatternMapping<T>
impl<T: PartialOrd> PartialOrd<PatternMapping<T>> for PatternMapping<T>
source§fn partial_cmp(&self, other: &PatternMapping<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &PatternMapping<T>) -> Option<Ordering>
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