Struct git_repository::index::Entry
source · [−]pub struct Entry {
pub stat: Stat,
pub id: ObjectId,
pub flags: Flags,
pub mode: Mode,
/* private fields */
}
Available on crate feature
unstable
only.Expand description
An entry in the index, identifying a non-tree item on disk.
Fields
stat: Stat
The filesystem stat information for the file on disk.
id: ObjectId
The object id for this entry’s ODB representation (assuming it’s up-to-date with it).
flags: Flags
Additional flags for use in algorithms and for efficiently storing stage information.
mode: Mode
The kind of item this entry represents - it’s not all blobs in the index anymore.
Implementations
Trait Implementations
sourceimpl PartialEq<Entry> for Entry
impl PartialEq<Entry> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more