pub enum FileStatus {
Unchanged,
Modified,
Added,
Deleted,
}Expand description
Status of a file in the worktree.
Variants§
Unchanged
File is unchanged.
Modified
File has been modified.
Added
File has been added (not in state).
Deleted
File has been deleted (in state but not in worktree).
Trait Implementations§
Source§impl Clone for FileStatus
impl Clone for FileStatus
Source§fn clone(&self) -> FileStatus
fn clone(&self) -> FileStatus
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 FileStatus
impl Debug for FileStatus
impl Eq for FileStatus
Source§impl PartialEq for FileStatus
impl PartialEq for FileStatus
Source§fn eq(&self, other: &FileStatus) -> bool
fn eq(&self, other: &FileStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FileStatus
Auto Trait Implementations§
impl Freeze for FileStatus
impl RefUnwindSafe for FileStatus
impl Send for FileStatus
impl Sync for FileStatus
impl Unpin for FileStatus
impl UnsafeUnpin for FileStatus
impl UnwindSafe for FileStatus
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