pub struct IntervalTextEdit {
pub start: usize,
pub delete_len: usize,
pub insert_len: usize,
}Expand description
Text edit delta used to shift style intervals after text changes.
Coordinates are character offsets in the pre-edit document. A non-zero deletion is applied
first as [start, start + delete_len), then insert_len characters are inserted at start.
Fields§
§start: usizeCharacter offset where the edit starts.
delete_len: usizeNumber of characters deleted from start.
insert_len: usizeNumber of characters inserted at start after deletion.
Implementations§
Trait Implementations§
Source§impl Clone for IntervalTextEdit
impl Clone for IntervalTextEdit
Source§fn clone(&self) -> IntervalTextEdit
fn clone(&self) -> IntervalTextEdit
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 moreimpl Copy for IntervalTextEdit
Source§impl Debug for IntervalTextEdit
impl Debug for IntervalTextEdit
impl Eq for IntervalTextEdit
Source§impl PartialEq for IntervalTextEdit
impl PartialEq for IntervalTextEdit
Source§fn eq(&self, other: &IntervalTextEdit) -> bool
fn eq(&self, other: &IntervalTextEdit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IntervalTextEdit
Auto Trait Implementations§
impl Freeze for IntervalTextEdit
impl RefUnwindSafe for IntervalTextEdit
impl Send for IntervalTextEdit
impl Sync for IntervalTextEdit
impl Unpin for IntervalTextEdit
impl UnsafeUnpin for IntervalTextEdit
impl UnwindSafe for IntervalTextEdit
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