pub enum RepositoryKind {
Submodule,
LinkedWorktree,
Common,
}Expand description
The kind of repository by looking exclusively at its git_dir.
Variants§
Submodule
The repository resides in .git/modules/.
LinkedWorktree
The repository resides in .git/worktrees/.
Common
The repository is in a .git directory.
Trait Implementations§
Source§impl Clone for RepositoryKind
impl Clone for RepositoryKind
Source§fn clone(&self) -> RepositoryKind
fn clone(&self) -> RepositoryKind
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 RepositoryKind
Source§impl Debug for RepositoryKind
impl Debug for RepositoryKind
impl Eq for RepositoryKind
Source§impl Hash for RepositoryKind
impl Hash for RepositoryKind
Source§impl Ord for RepositoryKind
impl Ord for RepositoryKind
Source§fn cmp(&self, other: &RepositoryKind) -> Ordering
fn cmp(&self, other: &RepositoryKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RepositoryKind
impl PartialEq for RepositoryKind
Source§impl PartialOrd for RepositoryKind
impl PartialOrd for RepositoryKind
impl StructuralPartialEq for RepositoryKind
Auto Trait Implementations§
impl Freeze for RepositoryKind
impl RefUnwindSafe for RepositoryKind
impl Send for RepositoryKind
impl Sync for RepositoryKind
impl Unpin for RepositoryKind
impl UnsafeUnpin for RepositoryKind
impl UnwindSafe for RepositoryKind
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