pub struct EntryRef<'repo, 'a> {
pub inner: EntryRef<'a>,
pub repo: &'repo Repository,
}Expand description
An entry within a tree
Fields§
§inner: EntryRef<'a>The actual entry ref we are wrapping.
repo: &'repo RepositoryThe owning repository.
Implementations§
Source§impl<'repo, 'a> EntryRef<'repo, 'a>
impl<'repo, 'a> EntryRef<'repo, 'a>
Sourcepub fn kind(&self) -> EntryKind
pub fn kind(&self) -> EntryKind
The kind of object to which id() is pointing, as shortcut to self.mode().kind().
Sourcepub fn oid(&self) -> &oid
pub fn oid(&self) -> &oid
Return the plain object id of this entry, without access to the repository.
Trait Implementations§
Auto Trait Implementations§
impl<'repo, 'a> Freeze for EntryRef<'repo, 'a>
impl<'repo, 'a> !RefUnwindSafe for EntryRef<'repo, 'a>
impl<'repo, 'a> !Send for EntryRef<'repo, 'a>
impl<'repo, 'a> !Sync for EntryRef<'repo, 'a>
impl<'repo, 'a> Unpin for EntryRef<'repo, 'a>
impl<'repo, 'a> !UnwindSafe for EntryRef<'repo, '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