pub enum GitAttributeState {
Set,
Unset,
Value(GitAttributeValue),
Unspecified,
}Expand description
Attribute state vocabulary.
Variants§
Set
Attribute is set.
Unset
Attribute is unset.
Value(GitAttributeValue)
Attribute has an explicit value.
Unspecified
Attribute is explicitly unspecified.
Implementations§
Trait Implementations§
Source§impl Clone for GitAttributeState
impl Clone for GitAttributeState
Source§fn clone(&self) -> GitAttributeState
fn clone(&self) -> GitAttributeState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GitAttributeState
impl Debug for GitAttributeState
Source§impl Display for GitAttributeState
impl Display for GitAttributeState
Source§impl FromStr for GitAttributeState
impl FromStr for GitAttributeState
Source§type Err = GitAttributeParseError
type Err = GitAttributeParseError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<GitAttributeState, <GitAttributeState as FromStr>::Err>
fn from_str( value: &str, ) -> Result<GitAttributeState, <GitAttributeState as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for GitAttributeState
impl Hash for GitAttributeState
Source§impl Ord for GitAttributeState
impl Ord for GitAttributeState
Source§fn cmp(&self, other: &GitAttributeState) -> Ordering
fn cmp(&self, other: &GitAttributeState) -> Ordering
1.21.0 (const: unstable) · 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 for GitAttributeState
impl PartialEq for GitAttributeState
Source§fn eq(&self, other: &GitAttributeState) -> bool
fn eq(&self, other: &GitAttributeState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GitAttributeState
impl PartialOrd for GitAttributeState
impl Eq for GitAttributeState
impl StructuralPartialEq for GitAttributeState
Auto Trait Implementations§
impl Freeze for GitAttributeState
impl RefUnwindSafe for GitAttributeState
impl Send for GitAttributeState
impl Sync for GitAttributeState
impl Unpin for GitAttributeState
impl UnsafeUnpin for GitAttributeState
impl UnwindSafe for GitAttributeState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more