pub struct RGATextDelta {
pub inserts: Vec<(TextId, char, TextId)>,
pub deletes: Vec<TextId>,
}Expand description
Delta for text operations.
Fields§
§inserts: Vec<(TextId, char, TextId)>Characters to insert.
deletes: Vec<TextId>IDs of characters to delete.
Implementations§
Trait Implementations§
Source§impl Clone for RGATextDelta
impl Clone for RGATextDelta
Source§fn clone(&self) -> RGATextDelta
fn clone(&self) -> RGATextDelta
Returns a duplicate of the value. Read more
1.0.0 · 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 RGATextDelta
impl Debug for RGATextDelta
Source§impl Default for RGATextDelta
impl Default for RGATextDelta
Source§impl<'de> Deserialize<'de> for RGATextDelta
impl<'de> Deserialize<'de> for RGATextDelta
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 RGATextDelta
impl PartialEq for RGATextDelta
Source§impl Serialize for RGATextDelta
impl Serialize for RGATextDelta
impl Eq for RGATextDelta
impl StructuralPartialEq for RGATextDelta
Auto Trait Implementations§
impl Freeze for RGATextDelta
impl RefUnwindSafe for RGATextDelta
impl Send for RGATextDelta
impl Sync for RGATextDelta
impl Unpin for RGATextDelta
impl UnwindSafe for RGATextDelta
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