pub enum Change {
Equal,
Delete,
Insert,
}Expand description
The role a line plays in a Diff.
A diff is a sequence of lines, each tagged with how it relates to the two inputs. “Expected” is the baseline (the left/old side); “actual” is the value under test (the right/new side).
Variants§
Equal
The line is present, unchanged, in both the expected and actual text.
Delete
The line is present in the expected text but missing from the actual
text. Rendered with a leading -.
Insert
The line is present in the actual text but was not expected. Rendered
with a leading +.
Implementations§
Trait Implementations§
impl Copy for Change
impl Eq for Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more