pub trait Pattern:
Clone
+ PartialEq
+ Eq
+ Debug
+ Hash
+ Ord
+ PartialOrd
+ Default {
type Value: PartialEq + Eq + Debug + Hash + Ord + PartialOrd + Clone;
// Required method
fn bytes_to_patterns(
bytes: &[u8],
source: &Path,
) -> Vec<Mapping<Self::Value>>;
}
Expand description
A trait to convert bytes into patterns and their associated value.
This is used for gitattributes
which have a value, and gitignore
which don’t.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.