pub struct EntryRef<'a> {
pub mode: EntryMode,
pub filename: &'a BStr,
pub oid: &'a oid,
}Expand description
An element of a TreeRef.
Fields§
§mode: EntryModeThe kind of object to which oid is pointing.
filename: &'a BStrThe name of the file in the parent tree.
oid: &'a oidThe id of the object representing the entry.
Trait Implementations§
source§impl<'de, 'a> Deserialize<'de> for EntryRef<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for EntryRef<'a>where
'de: 'a,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EntryRef<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EntryRef<'a>, <__D as Deserializer<'de>>::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§impl<'a> PartialOrd for EntryRef<'a>
impl<'a> PartialOrd for EntryRef<'a>
source§impl<'a> Serialize for EntryRef<'a>
impl<'a> Serialize for EntryRef<'a>
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
source§impl<'a> TreeEntryRefExt<'a> for EntryRef<'a>
impl<'a> TreeEntryRefExt<'a> for EntryRef<'a>
source§fn attach<'repo>(self, repo: &'repo Repository) -> EntryRef<'repo, 'a>
fn attach<'repo>(self, repo: &'repo Repository) -> EntryRef<'repo, 'a>
Attach
Repository to the given tree entry. It can be detached later with detach().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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)