pub enum GitFileChange {
Added,
Modified,
Deleted,
Renamed,
Copied,
Untracked,
Ignored,
Conflicted,
}Expand description
File-change vocabulary.
Variants§
Added
Added file.
Modified
Modified file.
Deleted
Deleted file.
Renamed
Renamed file.
Copied
Copied file.
Untracked
Untracked file.
Ignored
Ignored file.
Conflicted
Conflicted file.
Implementations§
Source§impl GitFileChange
impl GitFileChange
Trait Implementations§
Source§impl Clone for GitFileChange
impl Clone for GitFileChange
Source§fn clone(&self) -> GitFileChange
fn clone(&self) -> GitFileChange
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 GitFileChange
impl Debug for GitFileChange
Source§impl Display for GitFileChange
impl Display for GitFileChange
Source§impl FromStr for GitFileChange
impl FromStr for GitFileChange
Source§type Err = GitStatusParseError
type Err = GitStatusParseError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<GitFileChange, <GitFileChange as FromStr>::Err>
fn from_str( value: &str, ) -> Result<GitFileChange, <GitFileChange as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for GitFileChange
impl Hash for GitFileChange
Source§impl Ord for GitFileChange
impl Ord for GitFileChange
Source§fn cmp(&self, other: &GitFileChange) -> Ordering
fn cmp(&self, other: &GitFileChange) -> 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 GitFileChange
impl PartialEq for GitFileChange
Source§fn eq(&self, other: &GitFileChange) -> bool
fn eq(&self, other: &GitFileChange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GitFileChange
impl PartialOrd for GitFileChange
impl Copy for GitFileChange
impl Eq for GitFileChange
impl StructuralPartialEq for GitFileChange
Auto Trait Implementations§
impl Freeze for GitFileChange
impl RefUnwindSafe for GitFileChange
impl Send for GitFileChange
impl Sync for GitFileChange
impl Unpin for GitFileChange
impl UnsafeUnpin for GitFileChange
impl UnwindSafe for GitFileChange
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