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 Ord for EntryRef<'_>
impl Ord for EntryRef<'_>
Source§impl PartialOrd for EntryRef<'_>
impl PartialOrd for EntryRef<'_>
impl<'a> Copy for EntryRef<'a>
impl<'a> Eq for EntryRef<'a>
impl<'a> StructuralPartialEq for EntryRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for EntryRef<'a>
impl<'a> RefUnwindSafe for EntryRef<'a>
impl<'a> Send for EntryRef<'a>
impl<'a> Sync for EntryRef<'a>
impl<'a> Unpin for EntryRef<'a>
impl<'a> UnwindSafe for EntryRef<'a>
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