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

Represents a mutable CRDT register 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

Set content of the register to a new value.

Access to the value within the register The operation may fail if the content of the register can not be serialized into T

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.