pub enum WorktreeEntryState {
Clean,
Modified,
Deleted,
}Expand description
The worktree state of one tracked path relative to an expected index/tree entry.
Variants§
Clean
The path exists in the worktree and matches the expected mode/object id.
Modified
The path exists, but its type, mode, filtered content, symlink target, or gitlink HEAD differs from the expected entry.
Deleted
The path, or one of its parents, is missing from the worktree.
Trait Implementations§
Source§impl Clone for WorktreeEntryState
impl Clone for WorktreeEntryState
Source§fn clone(&self) -> WorktreeEntryState
fn clone(&self) -> WorktreeEntryState
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 moreimpl Copy for WorktreeEntryState
Source§impl Debug for WorktreeEntryState
impl Debug for WorktreeEntryState
impl Eq for WorktreeEntryState
Source§impl PartialEq for WorktreeEntryState
impl PartialEq for WorktreeEntryState
Source§fn eq(&self, other: &WorktreeEntryState) -> bool
fn eq(&self, other: &WorktreeEntryState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WorktreeEntryState
Auto Trait Implementations§
impl Freeze for WorktreeEntryState
impl RefUnwindSafe for WorktreeEntryState
impl Send for WorktreeEntryState
impl Sync for WorktreeEntryState
impl Unpin for WorktreeEntryState
impl UnsafeUnpin for WorktreeEntryState
impl UnwindSafe for WorktreeEntryState
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