pub enum TreeEntryType {
File,
Executable,
Symlink,
Tree,
Commit,
}Expand description
The type of an entry in a tree
Variants§
File
A non-executable file pointing to a blob
Executable
An executable file pointing to a blob
Symlink
A symbolic link
Symbolic links in git are encoded as a tree entry of type symlink pointing to a blob. The blob’s content is the path of the symlink target.
Tree
A sub-tree, i.e. a subdirectory
Commit
A pointer to a commit
This is used for git submodules.
Trait Implementations§
Source§impl Clone for TreeEntryType
impl Clone for TreeEntryType
Source§fn clone(&self) -> TreeEntryType
fn clone(&self) -> TreeEntryType
Returns a duplicate 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 TreeEntryType
impl Debug for TreeEntryType
Source§impl Ord for TreeEntryType
impl Ord for TreeEntryType
Source§fn cmp(&self, other: &TreeEntryType) -> Ordering
fn cmp(&self, other: &TreeEntryType) -> 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 TreeEntryType
impl PartialEq for TreeEntryType
Source§impl PartialOrd for TreeEntryType
impl PartialOrd for TreeEntryType
impl Copy for TreeEntryType
impl Eq for TreeEntryType
impl StructuralPartialEq for TreeEntryType
Auto Trait Implementations§
impl Freeze for TreeEntryType
impl RefUnwindSafe for TreeEntryType
impl Send for TreeEntryType
impl Sync for TreeEntryType
impl Unpin for TreeEntryType
impl UnsafeUnpin for TreeEntryType
impl UnwindSafe for TreeEntryType
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