pub struct TextEdit {
pub start: u32,
pub end: u32,
pub new_text: Vec<u8>,
}Expand description
A text edit: replace old_source[start..end] with new_text.
Fields§
§start: u32Start byte offset in the old source (inclusive).
end: u32End byte offset in the old source (exclusive).
new_text: Vec<u8>Replacement bytes (UTF-8).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextEdit
impl RefUnwindSafe for TextEdit
impl Send for TextEdit
impl Sync for TextEdit
impl Unpin for TextEdit
impl UnsafeUnpin for TextEdit
impl UnwindSafe for TextEdit
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