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: EntryMode
The kind of entry, similar to entries in a unix directory tree.
filepath: BString
The 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: ObjectId
The 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
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
)