pub enum RangeEffect {
Untouched,
InsertedInside,
PartlyDeleted,
}Expand description
What an applied change did to a range something else was anchored to.
The input to ADR-0006 §4’s overlap policy: Untouched rebases, the other two are the
conflicting cases. Returned by ChangeSet::touches.
Variants§
Untouched
The range survived; mapping its endpoints is enough.
InsertedInside
New text landed strictly inside the range (ADR-0006 §4 case 2). Applying a hunk over this would delete text the human typed without ever showing it to them.
PartlyDeleted
Some of the range was deleted (ADR-0006 §4 case 4), so where the hunk belongs is no longer determined by the text it was written against.
Trait Implementations§
Source§impl Clone for RangeEffect
impl Clone for RangeEffect
Source§fn clone(&self) -> RangeEffect
fn clone(&self) -> RangeEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RangeEffect
Source§impl Debug for RangeEffect
impl Debug for RangeEffect
impl Eq for RangeEffect
Source§impl PartialEq for RangeEffect
impl PartialEq for RangeEffect
impl StructuralPartialEq for RangeEffect
Auto Trait Implementations§
impl Freeze for RangeEffect
impl RefUnwindSafe for RangeEffect
impl Send for RangeEffect
impl Sync for RangeEffect
impl Unpin for RangeEffect
impl UnsafeUnpin for RangeEffect
impl UnwindSafe for RangeEffect
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