pub struct ReplaceEdit {
pub old_text: String,
pub new_text: String,
}Expand description
A single replacement { old_text, new_text }.
Fields§
§old_text: String§new_text: StringTrait Implementations§
Source§impl Clone for ReplaceEdit
impl Clone for ReplaceEdit
Source§fn clone(&self) -> ReplaceEdit
fn clone(&self) -> ReplaceEdit
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 moreAuto Trait Implementations§
impl Freeze for ReplaceEdit
impl RefUnwindSafe for ReplaceEdit
impl Send for ReplaceEdit
impl Sync for ReplaceEdit
impl Unpin for ReplaceEdit
impl UnsafeUnpin for ReplaceEdit
impl UnwindSafe for ReplaceEdit
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