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 PartialOrd for Kind
impl PartialOrd for Kind
impl 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