pub enum LockedChange {
Modified,
Added,
Deleted,
Untracked,
TypeChanged,
OutsideRepo,
}Expand description
How a locked path differs from spec_commit (§5).
Variants§
Modified
Content or mode differs.
Added
A tracked file that spec_commit does not have.
Deleted
Gone from the worktree.
Untracked
A new file not in git.
TypeChanged
Any type change: file ↔ symlink ↔ directory.
OutsideRepo
A path that was a symlink at spec_commit and now resolves outside
the repository.
Implementations§
Trait Implementations§
Source§impl Clone for LockedChange
impl Clone for LockedChange
impl Copy for LockedChange
Source§impl Debug for LockedChange
impl Debug for LockedChange
Source§impl<'de> Deserialize<'de> for LockedChange
impl<'de> Deserialize<'de> for LockedChange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LockedChange
Source§impl Hash for LockedChange
impl Hash for LockedChange
Source§impl Ord for LockedChange
impl Ord for LockedChange
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LockedChange
impl PartialEq for LockedChange
Source§impl PartialOrd for LockedChange
impl PartialOrd for LockedChange
Source§impl Serialize for LockedChange
impl Serialize for LockedChange
impl StructuralPartialEq for LockedChange
Auto Trait Implementations§
impl Forget for LockedChange
impl Freeze for LockedChange
impl Move for LockedChange
impl RefUnwindSafe for LockedChange
impl Send for LockedChange
impl Sync for LockedChange
impl Unpin for LockedChange
impl UnsafeUnpin for LockedChange
impl UnwindSafe for LockedChange
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