pub enum RepositoryStructure {
NonGit {
selected_root: PathBuf,
},
Git(GitRepositoryStructure),
InvalidGit {
selected_root: PathBuf,
issue: GitStructureIssue,
},
}Expand description
Read-only structural classification for one selected path.
Variants§
NonGit
No containing structural Git checkout or common directory was found.
Git(GitRepositoryStructure)
A structurally validated Git repository and its worktree inventory.
InvalidGit
A Git marker was present, but its structural evidence was unsafe or inconsistent.
Fields
§
issue: GitStructureIssueExact typed structural problem.
Trait Implementations§
Source§impl Clone for RepositoryStructure
impl Clone for RepositoryStructure
Source§fn clone(&self) -> RepositoryStructure
fn clone(&self) -> RepositoryStructure
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 RepositoryStructure
impl Debug for RepositoryStructure
impl Eq for RepositoryStructure
Source§impl PartialEq for RepositoryStructure
impl PartialEq for RepositoryStructure
Source§fn eq(&self, other: &RepositoryStructure) -> bool
fn eq(&self, other: &RepositoryStructure) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RepositoryStructure
Auto Trait Implementations§
impl Freeze for RepositoryStructure
impl RefUnwindSafe for RepositoryStructure
impl Send for RepositoryStructure
impl Sync for RepositoryStructure
impl Unpin for RepositoryStructure
impl UnsafeUnpin for RepositoryStructure
impl UnwindSafe for RepositoryStructure
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.