Struct ron_crdt::Set

source ·
pub struct Set;
Expand description

2-Phase sets are sets of atoms. Each element is associated with the timestamp of the Op that inserted it. Removing elements is done my inserting a tombstone. Thus, deletions override insertions.

Implementations§

Inserts value into the Set state. Returns the update Frame without modifing the Set.

Removes value from the Set state by inserting a tombstone for all insertions of value. Returns the update Frame without modifing the Set.

Trait Implementations§

Rust type this CRDT can be mapped to.
Returns the state Frame of a new, empty CRDT instance with UUID obj.
Reduce state Frame state and update Frames updates to a new state Frame.
Maps the state Frame state to a Rust type.

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.

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.