pub enum Record<Context> {
    FileMove {
        new_name: String,
        del: Change<Context>,
        add: Change<Context>,
    },
    FileDel {
        name: String,
        del: Change<Context>,
    },
    FileAdd {
        name: String,
        add: Change<Context>,
    },
    Change {
        file: Rc<PathBuf>,
        change: Change<Context>,
        conflict_reordering: Vec<Change<Context>>,
    },
    Replace {
        file: Rc<PathBuf>,
        adds: Change<Context>,
        dels: Change<Context>,
        conflict_reordering: Vec<Change<Context>>,
    },
}
Expand description

Semantic groups of changes, for interface purposes.

Variants§

§

FileMove

Fields

§new_name: String
§del: Change<Context>
§add: Change<Context>
§

FileDel

Fields

§name: String
§del: Change<Context>
§

FileAdd

Fields

§name: String
§add: Change<Context>
§

Change

Fields

§file: Rc<PathBuf>
§change: Change<Context>
§conflict_reordering: Vec<Change<Context>>
§

Replace

Fields

§file: Rc<PathBuf>
§adds: Change<Context>
§dels: Change<Context>
§conflict_reordering: Vec<Change<Context>>

Implementations§

Trait Implementations§

Formats the value using the given formatter. Read more
Which kind of iterator are we turning this into?
The type of the elements being iterated over.
Creates an iterator from a value. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.