Trait gix_diff::rewrites::tracker::Change

source ·
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§

source

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.

source

fn kind(&self) -> ChangeKind

Return the kind of this change.

source

fn entry_mode(&self) -> EntryMode

Return more information about the kind of entry affected by this change.

source

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.

Implementors§