Trait git_attributes::Pattern
source · [−]pub trait Pattern: Clone + PartialEq + Eq + Debug + Hash + Ord + PartialOrd + Default {
type Value: PartialEq + Eq + Debug + Hash + Ord + PartialOrd + Clone;
fn bytes_to_patterns(bytes: &[u8]) -> Vec<PatternMapping<Self::Value>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
;
fn use_pattern(pattern: &Pattern) -> bool;
}
Expand description
A marker trait to identify the type of a description.
Required Associated Types
Required Methods
Parse all patterns in bytes
line by line, ignoring lines with errors, and collect them.