#[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<EntryKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EntryKind, <__D as Deserializer<'de>>::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 PartialEq for EntryKind
impl PartialEq for EntryKind
source§impl PartialOrd for EntryKind
impl PartialOrd for EntryKind
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for EntryKind
impl Serialize for EntryKind
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for EntryKind
impl Eq for EntryKind
impl StructuralEq for EntryKind
impl StructuralPartialEq for EntryKind
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more