pub enum WorktreeEntryKind {
Directory,
File(Vec<u8>),
Symlink(PathBuf),
}Expand description
The kind and exact contents of a worktree entry.
Variants§
Directory
A directory.
File(Vec<u8>)
A regular file.
Symlink(PathBuf)
A symbolic link with its target.
Trait Implementations§
Source§impl Clone for WorktreeEntryKind
impl Clone for WorktreeEntryKind
Source§fn clone(&self) -> WorktreeEntryKind
fn clone(&self) -> WorktreeEntryKind
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 WorktreeEntryKind
impl Debug for WorktreeEntryKind
impl Eq for WorktreeEntryKind
Source§impl PartialEq for WorktreeEntryKind
impl PartialEq for WorktreeEntryKind
impl StructuralPartialEq for WorktreeEntryKind
Auto Trait Implementations§
impl Freeze for WorktreeEntryKind
impl RefUnwindSafe for WorktreeEntryKind
impl Send for WorktreeEntryKind
impl Sync for WorktreeEntryKind
impl Unpin for WorktreeEntryKind
impl UnsafeUnpin for WorktreeEntryKind
impl UnwindSafe for WorktreeEntryKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.