pub struct DittoMutableRga { /* private fields */ }
Expand description

Represents a mutable CRDT rga that can be updated while updating a document.

This class can’t be instantiated directly. It’s returned from the get_mut method of DittoMutDocument.

Implementations

The operation may fail if the content of the Rga can not be serialized into T

Set a value at the specified index.

Remove a value at the specified index.

Push a value on to the end of the RGA.

Pop a value off the end of the RGA.

Inserts a value into an the RGA at the index specified.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts to T by calling Into<T>::into.

Tries to convert to T by calling TryInto<T>::try_into.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.