Enum garden::model::GitTreeType
source · pub enum GitTreeType {
Parent,
Worktree(PathBuf),
Tree,
Bare,
}
Expand description
Represent the different types of Git worktree.
Variants§
Parent
A worktree with child worktrees attached to it.
Worktree(PathBuf)
A child worktree created with “git worktree”.
Tree
A regular Git clone / worktree created with “git clone/init”.
Bare
A bare repository.
Trait Implementations§
source§impl Clone for GitTreeType
impl Clone for GitTreeType
source§fn clone(&self) -> GitTreeType
fn clone(&self) -> GitTreeType
Returns a copy of the value. Read more
1.0.0 · 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 GitTreeType
impl Debug for GitTreeType
source§impl Display for GitTreeType
impl Display for GitTreeType
source§impl PartialEq for GitTreeType
impl PartialEq for GitTreeType
source§fn eq(&self, other: &GitTreeType) -> bool
fn eq(&self, other: &GitTreeType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GitTreeType
impl StructuralEq for GitTreeType
impl StructuralPartialEq for GitTreeType
Auto Trait Implementations§
impl RefUnwindSafe for GitTreeType
impl Send for GitTreeType
impl Sync for GitTreeType
impl Unpin for GitTreeType
impl UnwindSafe for GitTreeType
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
§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
Checks if this value is equivalent to the given key. Read more
§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.