#[repr(u16)]pub enum EntryMode {
Tree = 16_384,
Blob = 33_188,
BlobExecutable = 33_261,
Link = 40_960,
Commit = 57_344,
}
Expand description
The mode of items storable in a tree, similar to the file mode on a unix file system.
Used in mutable::Entry and EntryRef.
Variants§
Tree = 16_384
A tree, or directory
Blob = 33_188
A file that is not executable
BlobExecutable = 33_261
A file that is executable
Link = 40_960
A symbolic link
Commit = 57_344
A commit of a git submodule
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EntryMode
impl<'de> Deserialize<'de> for EntryMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for EntryMode
impl Ord for EntryMode
Source§impl PartialOrd for EntryMode
impl PartialOrd for EntryMode
impl Copy for EntryMode
impl Eq for EntryMode
impl StructuralPartialEq for EntryMode
Auto Trait Implementations§
impl Freeze for EntryMode
impl RefUnwindSafe for EntryMode
impl Send for EntryMode
impl Sync for EntryMode
impl Unpin for EntryMode
impl UnwindSafe for EntryMode
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