pub enum Kind {
Untrackable,
File,
Symlink,
Directory,
Repository,
}Expand description
The kind of the entry, seated in their kinds available on disk.
Variants§
Untrackable
Something that is not a regular file, directory, or symbolic link.
These can only exist in the filesystem, because Git repositories do not support them, thus they cannot be tracked. Hence, they do not appear as blobs in a repository, and their type is not specifiable in a tree object. Examples include named pipes (FIFOs), character devices, block devices, and sockets.
File
The entry is a blob, representing a regular file, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.