Struct gix_traverse::tree::recorder::Entry
source · 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§
source§impl PartialEq for Entry
impl PartialEq for Entry
impl Eq for Entry
impl StructuralEq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more