pub struct Entry {
pub mode: EntryMode,
pub filepath: BString,
pub oid: ObjectId,
}Expand description
An owned entry as observed by a call to visit_(tree|nontree)(…), enhanced with the full path to it.
Otherwise similar to gix_object::tree::EntryRef.
Fields§
§mode: EntryModeThe kind of entry, similar to entries in a unix directory tree.
filepath: BStringThe full path to the entry. A root entry would be d, and a file a within the directory would be d/a.
This is independent of the platform and the path separators actually used there.
oid: ObjectIdThe id of the entry which can be used to locate it in an object database.
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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