pub enum DocEvent {
Insert {
position: usize,
text: String,
},
Delete {
position: usize,
length: usize,
},
RemoteUpdate,
}Expand description
Events emitted when a document changes.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocEvent
impl RefUnwindSafe for DocEvent
impl Send for DocEvent
impl Sync for DocEvent
impl Unpin for DocEvent
impl UnsafeUnpin for DocEvent
impl UnwindSafe for DocEvent
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