Enum git_diff::tree::visit::Change[][src]

pub enum Change {
    Addition {
        entry_mode: EntryMode,
        oid: ObjectId,
    },
    Deletion {
        entry_mode: EntryMode,
        oid: ObjectId,
    },
    Modification {
        previous_entry_mode: EntryMode,
        previous_oid: ObjectId,
        entry_mode: EntryMode,
        oid: ObjectId,
    },
}

Represents any possible change in order to turn one tree into another.

Variants

Addition

An entry was added, like the addition of a file or directory.

Show fields

Fields of Addition

entry_mode: EntryMode

The mode of the added entry.

oid: ObjectId

The object id of the added entry.

Deletion

An entry was deleted, like the deletion of a file or directory.

Show fields

Fields of Deletion

entry_mode: EntryMode

The mode of the deleted entry.

oid: ObjectId

The object id of the deleted entry.

Modification

An entry was modified, e.g. changing the contents of a file adjusts its object id and turning a file into a symbolic link adjusts its mode.

Show fields

Fields of Modification

previous_entry_mode: EntryMode

The mode of the entry before the modification.

previous_oid: ObjectId

The object id of the entry before the modification.

entry_mode: EntryMode

The mode of the entry after the modification.

oid: ObjectId

The object id of the after before the modification.

Auto Trait Implementations

impl RefUnwindSafe for Change

impl Send for Change

impl Sync for Change

impl Unpin for Change

impl UnwindSafe for Change

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.