Struct git_attributes::Attributes
source · pub struct Attributes;
Expand description
An implementation of the Pattern
trait for attributes.
Trait Implementations
sourceimpl Clone for Attributes
impl Clone for Attributes
sourcefn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Attributes
impl Debug for Attributes
sourceimpl Default for Attributes
impl Default for Attributes
sourcefn default() -> Attributes
fn default() -> Attributes
Returns the “default value” for a type. Read more
sourceimpl Hash for Attributes
impl Hash for Attributes
sourceimpl Ord for Attributes
impl Ord for Attributes
sourcefn cmp(&self, other: &Attributes) -> Ordering
fn cmp(&self, other: &Attributes) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Attributes> for Attributes
impl PartialEq<Attributes> for Attributes
sourcefn eq(&self, other: &Attributes) -> bool
fn eq(&self, other: &Attributes) -> bool
sourceimpl PartialOrd<Attributes> for Attributes
impl PartialOrd<Attributes> for Attributes
sourcefn partial_cmp(&self, other: &Attributes) -> Option<Ordering>
fn partial_cmp(&self, other: &Attributes) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Pattern for Attributes
impl Pattern for Attributes
type Value = Value
type Value = Value
The value associated with a pattern.
sourcefn 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.sourcefn 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.
impl Eq for Attributes
impl StructuralEq for Attributes
impl StructuralPartialEq for Attributes
Auto Trait Implementations
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more