pub struct Rga<T> { /* private fields */ }
Expand description
RGA (Replicated Growable Array) for collaborative text editing
Implementations§
Source§impl<T: Clone + PartialEq> Rga<T>
impl<T: Clone + PartialEq> Rga<T>
Sourcepub fn insert_after(
&mut self,
value: T,
after: Option<PositionId>,
) -> Result<PositionId, AdvancedCrdtError>
pub fn insert_after( &mut self, value: T, after: Option<PositionId>, ) -> Result<PositionId, AdvancedCrdtError>
Insert an element after the given position
Sourcepub fn delete(&mut self, position: &PositionId) -> Result<(), AdvancedCrdtError>
pub fn delete(&mut self, position: &PositionId) -> Result<(), AdvancedCrdtError>
Delete an element at the given position
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Rga<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Rga<T>where
T: Deserialize<'de>,
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<T> StructuralPartialEq for Rga<T>
Auto Trait Implementations§
impl<T> Freeze for Rga<T>
impl<T> RefUnwindSafe for Rga<T>where
T: RefUnwindSafe,
impl<T> Send for Rga<T>where
T: Send,
impl<T> Sync for Rga<T>where
T: Sync,
impl<T> Unpin for Rga<T>where
T: Unpin,
impl<T> UnwindSafe for Rga<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromFormData for Twhere
T: DeserializeOwned,
impl<T> FromFormData for Twhere
T: DeserializeOwned,
Source§fn from_event(ev: &Event) -> Result<T, FromFormDataError>
fn from_event(ev: &Event) -> Result<T, FromFormDataError>
Tries to deserialize the data, given only the
submit
event.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.