pub enum IndexState {
New,
Modified,
Deleted,
Renamed,
Typechange,
}Expand description
Staged (index) status for a path.
Variants§
New
Path added to the index.
Modified
Path modified in the index.
Deleted
Path deleted from the index.
Renamed
Path renamed in the index.
Typechange
File type changed in the index (e.g. regular file -> symlink).
Implementations§
Trait Implementations§
Source§impl Clone for IndexState
impl Clone for IndexState
Source§fn clone(&self) -> IndexState
fn clone(&self) -> IndexState
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 moreAuto Trait Implementations§
impl Freeze for IndexState
impl RefUnwindSafe for IndexState
impl Send for IndexState
impl Sync for IndexState
impl Unpin for IndexState
impl UnsafeUnpin for IndexState
impl UnwindSafe for IndexState
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