pub enum GitWorktreeState {
Active {
root: PathBuf,
git_control_path: PathBuf,
},
Missing {
git_control_path: PathBuf,
},
Invalid {
issue: GitStructureIssue,
},
}Expand description
Current structural state of one worktree registration.
Variants§
Active
Reciprocal control paths identify one existing checked-out root.
Fields
Missing
The registration remains, but its recorded checkout control path is absent.
Fields
Invalid
The registration exists but cannot be admitted as reciprocal identity evidence.
Fields
§
issue: GitStructureIssueExact typed structural problem.
Trait Implementations§
Source§impl Clone for GitWorktreeState
impl Clone for GitWorktreeState
Source§fn clone(&self) -> GitWorktreeState
fn clone(&self) -> GitWorktreeState
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 GitWorktreeState
impl Debug for GitWorktreeState
impl Eq for GitWorktreeState
Source§impl PartialEq for GitWorktreeState
impl PartialEq for GitWorktreeState
Source§fn eq(&self, other: &GitWorktreeState) -> bool
fn eq(&self, other: &GitWorktreeState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GitWorktreeState
Auto Trait Implementations§
impl Freeze for GitWorktreeState
impl RefUnwindSafe for GitWorktreeState
impl Send for GitWorktreeState
impl Sync for GitWorktreeState
impl Unpin for GitWorktreeState
impl UnsafeUnpin for GitWorktreeState
impl UnwindSafe for GitWorktreeState
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.