pub enum Kind {
File,
Symlink,
Directory,
Repository,
}
Expand description
The kind of the entry, seated in their kinds available on disk.
Variants§
File
The entry is a blob, executable or not.
Symlink
The entry is a symlink.
Directory
The entry is an ordinary directory.
Note that since we don’t check for bare repositories, this could in fact be a collapsed
bare repository. To be sure, check it again with gix_discover::is_git()
and act accordingly.
Repository
The entry is a directory which contains a .git
folder, or a submodule entry in the index.
Implementations§
Trait Implementations§
source§impl Ord for Kind
impl Ord for Kind
source§impl PartialEq for Kind
impl PartialEq for Kind
source§impl PartialOrd for Kind
impl PartialOrd for Kind
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 Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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