#[repr(u16)]pub enum EntryKind {
Tree = 16_384,
Blob = 33_188,
BlobExecutable = 33_261,
Link = 40_960,
Commit = 57_344,
}
Expand description
A discretized version of ideal and valid values for entry modes.
Note that even though it can represent every valid mode, it might loose information due to that as well.
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 EntryKind
impl<'de> Deserialize<'de> for EntryKind
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 EntryKind
impl Ord for EntryKind
Source§impl PartialOrd for EntryKind
impl PartialOrd for EntryKind
impl Copy for EntryKind
impl Eq for EntryKind
impl StructuralPartialEq for EntryKind
Auto Trait Implementations§
impl Freeze for EntryKind
impl RefUnwindSafe for EntryKind
impl Send for EntryKind
impl Sync for EntryKind
impl Unpin for EntryKind
impl UnwindSafe for EntryKind
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