pub enum Change<'a, 'data> {
    Addition {
        lines: &'a [&'data BStr],
    },
    Deletion {
        lines: &'a [&'data BStr],
    },
    Modification {
        lines_before: &'a [&'data BStr],
        lines_after: &'a [&'data BStr],
    },
}
Expand description

A change to a hunk of lines.

Variants§

§

Addition

Fields

§lines: &'a [&'data BStr]

The lines themselves without terminator.

Lines were added.

§

Deletion

Fields

§lines: &'a [&'data BStr]

The lines themselves without terminator.

Lines were removed.

§

Modification

Fields

§lines_before: &'a [&'data BStr]

The replaced lines without terminator.

§lines_after: &'a [&'data BStr]

The new lines without terminator.

Lines have been replaced.

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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
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.