pub enum DiffTag {
Insert,
Delete,
Equal,
}
Available on crate feature
diff
only.Expand description
Whether a DiffSegment
represents an insertion, deletion, or no change.
Variants§
Insert
The segment is in the actual value but not the expected value.
Delete
The segment is in the expected value but not the actual value.
Equal
The segment is the same in both the actual and expected values.
Trait Implementations§
impl Copy for DiffTag
impl Eq for DiffTag
impl StructuralPartialEq for DiffTag
Auto Trait Implementations§
impl Freeze for DiffTag
impl RefUnwindSafe for DiffTag
impl Send for DiffTag
impl Sync for DiffTag
impl Unpin for DiffTag
impl UnwindSafe for DiffTag
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