pub struct TextEdit {
pub range: (usize, usize),
pub new_text: String,
}Expand description
TextEdit for import optimization (local type for byte-offset ranges)
This is separate from LSP types which use line/character positions. Used internally for applying import optimization edits to source text.
Fields§
§range: (usize, usize)Byte offset range (start, end) in the source text
new_text: StringReplacement text
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