Enum GitAttributeState
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§
§impl Clone for GitAttributeState
impl Clone for GitAttributeState
§fn clone(&self) -> GitAttributeState
fn clone(&self) -> GitAttributeState
Returns a duplicate 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 more§impl Debug for GitAttributeState
impl Debug for GitAttributeState
§impl Display for GitAttributeState
impl Display for GitAttributeState
§impl FromStr for GitAttributeState
impl FromStr for GitAttributeState
§type Err = GitAttributeParseError
type Err = GitAttributeParseError
The associated error which can be returned from parsing.
§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 more§impl Hash for GitAttributeState
impl Hash for GitAttributeState
§impl Ord for GitAttributeState
impl Ord for GitAttributeState
§fn cmp(&self, other: &GitAttributeState) -> Ordering
fn cmp(&self, other: &GitAttributeState) -> 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
§impl PartialEq for GitAttributeState
impl PartialEq for GitAttributeState
§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