pub enum DeltaOp {
Keep(usize),
Insert(Vec<String>),
Delete(usize),
}Expand description
A single edit operation in a delta.
Variants§
Keep(usize)
Keep N lines unchanged (only the context lines next to a change are emitted).
Insert(Vec<String>)
Insert new lines.
Delete(usize)
Delete N lines from the original.
Trait Implementations§
impl Eq for DeltaOp
impl StructuralPartialEq for DeltaOp
Auto Trait Implementations§
impl Freeze for DeltaOp
impl RefUnwindSafe for DeltaOp
impl Send for DeltaOp
impl Sync for DeltaOp
impl Unpin for DeltaOp
impl UnsafeUnpin for DeltaOp
impl UnwindSafe for DeltaOp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.