pub enum TextOp {
Char(ListOp<char>),
Mark(Span),
}Expand description
A single text-CRDT operation.
Variants§
Char(ListOp<char>)
A character insertion or deletion in the underlying list.
Mark(Span)
A format-mark span.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextOp
impl<'de> Deserialize<'de> for TextOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TextOp
impl StructuralPartialEq for TextOp
Auto Trait Implementations§
impl Freeze for TextOp
impl RefUnwindSafe for TextOp
impl Send for TextOp
impl Sync for TextOp
impl Unpin for TextOp
impl UnsafeUnpin for TextOp
impl UnwindSafe for TextOp
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