pub struct TextEditSpec {
pub start: usize,
pub end: usize,
pub text: String,
}Expand description
A simple document text edit (character offsets, half-open).
This is commonly used for applying a batch of “simultaneous” edits (e.g. rename, refactor, or workspace-wide search/replace), where the edit list is expressed in pre-edit coordinates.
Fields§
§start: usizeInclusive start character offset.
end: usizeExclusive end character offset.
text: StringReplacement text.
Trait Implementations§
Source§impl Clone for TextEditSpec
impl Clone for TextEditSpec
Source§impl Debug for TextEditSpec
impl Debug for TextEditSpec
impl Eq for TextEditSpec
Source§impl PartialEq for TextEditSpec
impl PartialEq for TextEditSpec
impl StructuralPartialEq for TextEditSpec
Auto Trait Implementations§
impl Forget for TextEditSpec
impl Freeze for TextEditSpec
impl Move for TextEditSpec
impl RefUnwindSafe for TextEditSpec
impl Send for TextEditSpecwhere
RawVecInner: Send,
impl Sync for TextEditSpecwhere
RawVecInner: Sync,
impl Unpin for TextEditSpec
impl UnsafeUnpin for TextEditSpec
impl UnwindSafe for TextEditSpecwhere
RawVecInner: UnwindSafe,
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