pub enum TextChange {
Replace(Arc<str>),
Edit {
range: TextRange,
insert: Arc<str>,
},
}Expand description
A source update applied to an immutable Document snapshot.
Variants§
Replace(Arc<str>)
Replaces the complete document text.
Edit
Replaces a UTF-8 byte range with new text.
Implementations§
Trait Implementations§
Source§impl Clone for TextChange
impl Clone for TextChange
Source§impl Debug for TextChange
impl Debug for TextChange
impl Eq for TextChange
Source§impl PartialEq for TextChange
impl PartialEq for TextChange
impl StructuralPartialEq for TextChange
Auto Trait Implementations§
impl Freeze for TextChange
impl RefUnwindSafe for TextChange
impl Send for TextChange
impl Sync for TextChange
impl Unpin for TextChange
impl UnsafeUnpin for TextChange
impl UnwindSafe for TextChange
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