pub enum WorktreeKind {
Bare,
Primary,
Linked,
}Expand description
How the repository is attached to a working tree.
Variants§
Bare
No worktree.
Primary
Primary checkout whose .git is a directory.
Linked
Linked worktree whose .git is a gitdir: file.
Trait Implementations§
Source§impl Clone for WorktreeKind
impl Clone for WorktreeKind
Source§fn clone(&self) -> WorktreeKind
fn clone(&self) -> WorktreeKind
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 WorktreeKind
Source§impl Debug for WorktreeKind
impl Debug for WorktreeKind
impl Eq for WorktreeKind
Source§impl PartialEq for WorktreeKind
impl PartialEq for WorktreeKind
impl StructuralPartialEq for WorktreeKind
Auto Trait Implementations§
impl Freeze for WorktreeKind
impl RefUnwindSafe for WorktreeKind
impl Send for WorktreeKind
impl Sync for WorktreeKind
impl Unpin for WorktreeKind
impl UnsafeUnpin for WorktreeKind
impl UnwindSafe for WorktreeKind
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