pub enum TextDeltaOp {
Insert {
insert: TextInsert,
format: Option<TextAttributes>,
},
Retain {
retain: u64,
format: Option<TextAttributes>,
},
Delete {
delete: u64,
},
}Variants§
Trait Implementations§
Source§impl Clone for TextDeltaOp
impl Clone for TextDeltaOp
Source§fn clone(&self) -> TextDeltaOp
fn clone(&self) -> TextDeltaOp
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 moreSource§impl Debug for TextDeltaOp
impl Debug for TextDeltaOp
Source§impl<'de> Deserialize<'de> for TextDeltaOp
impl<'de> Deserialize<'de> for TextDeltaOp
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
Source§impl PartialEq for TextDeltaOp
impl PartialEq for TextDeltaOp
Source§fn eq(&self, other: &TextDeltaOp) -> bool
fn eq(&self, other: &TextDeltaOp) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextDeltaOp
impl Serialize for TextDeltaOp
impl StructuralPartialEq for TextDeltaOp
Auto Trait Implementations§
impl Freeze for TextDeltaOp
impl RefUnwindSafe for TextDeltaOp
impl Send for TextDeltaOp
impl Sync for TextDeltaOp
impl Unpin for TextDeltaOp
impl UnsafeUnpin for TextDeltaOp
impl UnwindSafe for TextDeltaOp
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