Struct git_object::tree::EntryRef
source · pub struct EntryRef<'a> {
pub mode: EntryMode,
pub filename: &'a BStr,
pub oid: &'a oid,
}
Expand description
An element of a TreeRef
.
Fields§
§mode: EntryMode
The kind of object to which oid
is pointing.
filename: &'a BStr
The name of the file in the parent tree.
oid: &'a oid
The id of the object representing the entry.
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for EntryRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for EntryRef<'a>
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<'a> Ord for EntryRef<'a>
impl<'a> Ord for EntryRef<'a>
source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Entries compare by the common portion of the filename. This is critical for proper functioning of algorithms working on trees.
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<'a> PartialEq<EntryRef<'a>> for EntryRef<'a>
impl<'a> PartialEq<EntryRef<'a>> for EntryRef<'a>
source§impl<'a> PartialOrd<EntryRef<'a>> for EntryRef<'a>
impl<'a> PartialOrd<EntryRef<'a>> for EntryRef<'a>
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 more