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§fn clone(&self) -> TextEditSpec
fn clone(&self) -> TextEditSpec
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 TextEditSpec
impl Debug for TextEditSpec
Source§impl PartialEq for TextEditSpec
impl PartialEq for TextEditSpec
impl Eq for TextEditSpec
impl StructuralPartialEq for TextEditSpec
Auto Trait Implementations§
impl Freeze for TextEditSpec
impl RefUnwindSafe for TextEditSpec
impl Send for TextEditSpec
impl Sync for TextEditSpec
impl Unpin for TextEditSpec
impl UnsafeUnpin for TextEditSpec
impl UnwindSafe for TextEditSpec
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