pub enum WorktreePatchOperationKind {
CreateFile,
DeleteFile,
ReplaceBinary,
EditText,
ChangePerm,
}Expand description
Generated operation kind for CLI/reporting.
Variants§
CreateFile
A new file will be represented as CreateFile.
DeleteFile
A missing tracked file will be represented as DeleteFile.
ReplaceBinary
A modified tracked file will be represented as ReplaceBinary.
EditText
A modified UTF-8 text file is represented as an arbitrary-span EditText.
ChangePerm
A regular file whose normalized mode changed is represented as ChangePerm.
Implementations§
Trait Implementations§
Source§impl Clone for WorktreePatchOperationKind
impl Clone for WorktreePatchOperationKind
Source§fn clone(&self) -> WorktreePatchOperationKind
fn clone(&self) -> WorktreePatchOperationKind
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 WorktreePatchOperationKind
Source§impl Debug for WorktreePatchOperationKind
impl Debug for WorktreePatchOperationKind
impl Eq for WorktreePatchOperationKind
impl StructuralPartialEq for WorktreePatchOperationKind
Auto Trait Implementations§
impl Freeze for WorktreePatchOperationKind
impl RefUnwindSafe for WorktreePatchOperationKind
impl Send for WorktreePatchOperationKind
impl Sync for WorktreePatchOperationKind
impl Unpin for WorktreePatchOperationKind
impl UnsafeUnpin for WorktreePatchOperationKind
impl UnwindSafe for WorktreePatchOperationKind
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