Struct git_attributes::Attributes
source · pub struct Attributes;
Expand description
An implementation of the Pattern
trait for attributes.
Trait Implementations§
source§impl Clone for Attributes
impl Clone for Attributes
source§fn clone(&self) -> Attributes
fn clone(&self) -> Attributes
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 Debug for Attributes
impl Debug for Attributes
source§impl Default for Attributes
impl Default for Attributes
source§fn default() -> Attributes
fn default() -> Attributes
Returns the “default value” for a type. Read more
source§impl Hash for Attributes
impl Hash for Attributes
source§impl Ord for Attributes
impl Ord for Attributes
source§fn cmp(&self, other: &Attributes) -> Ordering
fn cmp(&self, other: &Attributes) -> 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 PartialEq<Attributes> for Attributes
impl PartialEq<Attributes> for Attributes
source§fn eq(&self, other: &Attributes) -> bool
fn eq(&self, other: &Attributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Attributes> for Attributes
impl PartialOrd<Attributes> for Attributes
source§fn partial_cmp(&self, other: &Attributes) -> Option<Ordering>
fn partial_cmp(&self, other: &Attributes) -> 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 moresource§impl Pattern for Attributes
impl Pattern for Attributes
source§fn bytes_to_patterns(bytes: &[u8]) -> Vec<PatternMapping<Self::Value>> ⓘ
fn bytes_to_patterns(bytes: &[u8]) -> Vec<PatternMapping<Self::Value>> ⓘ
Parse all patterns in
bytes
line by line, ignoring lines with errors, and collect them.source§fn may_use_glob_pattern(pattern: &Pattern) -> bool
fn may_use_glob_pattern(pattern: &Pattern) -> bool
Returns true if the given pattern may be used for matching.