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 more
sourceimpl 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) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Attributes> for Attributes
impl PartialEq<Attributes> for Attributes
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl 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>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
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,
A: Allocator,
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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