pub enum BlockTarget {
Replace {
range: ParsedRange,
},
Delete {
range: ParsedRange,
},
InsertBefore {
anchor: Anchor,
},
InsertAfter {
anchor: Anchor,
},
Bof,
Eof,
}Expand description
Where a hunk header lands. Line-ops only in the default build.
Variants§
Replace
SWAP start.=end: — replace the inclusive range.
Fields
§
range: ParsedRangeInclusive source line range overwritten by the hunk’s body.
Delete
DEL start or DEL start.=end — delete the inclusive range (no body).
Fields
§
range: ParsedRangeInclusive source line range removed by the hunk.
InsertBefore
INS.PRE N: — insert before line N.
InsertAfter
INS.POST N: — insert after line N.
Bof
INS.HEAD: — insert at the very top.
Eof
INS.TAIL: — insert at the very bottom.
Trait Implementations§
Source§impl Clone for BlockTarget
impl Clone for BlockTarget
Source§fn clone(&self) -> BlockTarget
fn clone(&self) -> BlockTarget
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 moreSource§impl Debug for BlockTarget
impl Debug for BlockTarget
impl Eq for BlockTarget
Source§impl PartialEq for BlockTarget
impl PartialEq for BlockTarget
impl StructuralPartialEq for BlockTarget
Auto Trait Implementations§
impl Freeze for BlockTarget
impl RefUnwindSafe for BlockTarget
impl Send for BlockTarget
impl Sync for BlockTarget
impl Unpin for BlockTarget
impl UnsafeUnpin for BlockTarget
impl UnwindSafe for BlockTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.