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§
Trait Implementations§
source§impl CRDT for Set
impl CRDT for Set
§type T = HashSet<Atom, RandomState>
type T = HashSet<Atom, RandomState>
Rust type this CRDT can be mapped to.
source§fn new<'a>(obj: UUID) -> Frame<'a> ⓘ
fn new<'a>(obj: UUID) -> Frame<'a> ⓘ
Returns the state Frame of a new, empty CRDT instance with UUID
obj
.