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.