Enum gix_index::DirectoryKind
source · pub enum DirectoryKind {
Inferred,
SparseDir,
Submodule,
}
Expand description
A representation of a directory in the index.
These are most of the time inferred, but may also be explicit entries.
Variants§
Inferred
The directory is implied as there is at least one tracked entry that lives within it.
SparseDir
The directory is present directly in the form of a sparse directory.
These are available when cone-mode is active.
Submodule
The directory is present directly in the form of the commit of a repository that is a submodule of the superproject (which this is the index of).
Trait Implementations§
source§impl Clone for DirectoryKind
impl Clone for DirectoryKind
source§fn clone(&self) -> DirectoryKind
fn clone(&self) -> DirectoryKind
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 DirectoryKind
impl Debug for DirectoryKind
source§impl Hash for DirectoryKind
impl Hash for DirectoryKind
source§impl Ord for DirectoryKind
impl Ord for DirectoryKind
source§fn cmp(&self, other: &DirectoryKind) -> Ordering
fn cmp(&self, other: &DirectoryKind) -> Ordering
1.21.0 · 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 DirectoryKind
impl PartialEq for DirectoryKind
source§fn eq(&self, other: &DirectoryKind) -> bool
fn eq(&self, other: &DirectoryKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DirectoryKind
impl PartialOrd for DirectoryKind
source§fn partial_cmp(&self, other: &DirectoryKind) -> Option<Ordering>
fn partial_cmp(&self, other: &DirectoryKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DirectoryKind
impl Eq for DirectoryKind
impl StructuralEq for DirectoryKind
impl StructuralPartialEq for DirectoryKind
Auto Trait Implementations§
impl RefUnwindSafe for DirectoryKind
impl Send for DirectoryKind
impl Sync for DirectoryKind
impl Unpin for DirectoryKind
impl UnwindSafe for DirectoryKind
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