pub trait Change: Clone {
// Required methods
fn id(&self) -> &oid;
fn kind(&self) -> ChangeKind;
fn entry_mode(&self) -> EntryMode;
fn id_and_entry_mode(&self) -> (&oid, EntryMode);
}Available on crate feature
blob only.Expand description
A trait providing all functionality to abstract over the concept of a change, as seen by the Tracker.
Required Methods§
sourcefn id(&self) -> &oid
fn id(&self) -> &oid
Return the hash of this change for identification.
Note that this is the id of the object as stored in git, i.e. it must have gone through workspace
conversions.
sourcefn kind(&self) -> ChangeKind
fn kind(&self) -> ChangeKind
Return the kind of this change.
sourcefn entry_mode(&self) -> EntryMode
fn entry_mode(&self) -> EntryMode
Return more information about the kind of entry affected by this change.
sourcefn id_and_entry_mode(&self) -> (&oid, EntryMode)
fn id_and_entry_mode(&self) -> (&oid, EntryMode)
Return the id of the change along with its mode.
Object Safety§
This trait is not object safe.