pub enum GitWorktreeRole {
Primary,
Linked,
}Expand description
Structural role of one checked-out worktree.
Variants§
Primary
Primary checkout whose .git directory is the common directory.
Linked
Linked checkout with reciprocal common-directory registration evidence.
Trait Implementations§
Source§impl Clone for GitWorktreeRole
impl Clone for GitWorktreeRole
Source§fn clone(&self) -> GitWorktreeRole
fn clone(&self) -> GitWorktreeRole
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 GitWorktreeRole
Source§impl Debug for GitWorktreeRole
impl Debug for GitWorktreeRole
impl Eq for GitWorktreeRole
Source§impl PartialEq for GitWorktreeRole
impl PartialEq for GitWorktreeRole
Source§fn eq(&self, other: &GitWorktreeRole) -> bool
fn eq(&self, other: &GitWorktreeRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GitWorktreeRole
Auto Trait Implementations§
impl Freeze for GitWorktreeRole
impl RefUnwindSafe for GitWorktreeRole
impl Send for GitWorktreeRole
impl Sync for GitWorktreeRole
impl Unpin for GitWorktreeRole
impl UnsafeUnpin for GitWorktreeRole
impl UnwindSafe for GitWorktreeRole
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.