pub enum HashLineEdit {
Replace {
anchor_hash: LineHash,
line_num: u32,
new_content: String,
},
InsertAfter {
anchor_hash: LineHash,
line_num: u32,
new_content: String,
},
InsertBefore {
anchor_hash: LineHash,
line_num: u32,
new_content: String,
},
Delete {
anchor_hash: LineHash,
line_num: u32,
},
ReplaceRange {
start_hash: LineHash,
start_line: u32,
end_hash: LineHash,
end_line: u32,
new_content: String,
},
}Expand description
Edit operations referencing lines by hash.
Variants§
Trait Implementations§
Source§impl Clone for HashLineEdit
impl Clone for HashLineEdit
Source§fn clone(&self) -> HashLineEdit
fn clone(&self) -> HashLineEdit
Returns a duplicate of the value. Read more
1.0.0 · 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 HashLineEdit
impl Debug for HashLineEdit
Source§impl<'de> Deserialize<'de> for HashLineEdit
impl<'de> Deserialize<'de> for HashLineEdit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HashLineEdit
impl RefUnwindSafe for HashLineEdit
impl Send for HashLineEdit
impl Sync for HashLineEdit
impl Unpin for HashLineEdit
impl UnsafeUnpin for HashLineEdit
impl UnwindSafe for HashLineEdit
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