Skip to main content

Crdt

Trait Crdt 

Source
pub trait Crdt {
    // Required method
    fn merge(&self, other: &Self) -> Self;
}

Required Methods§

Source

fn merge(&self, other: &Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<E> Crdt for GSet<E>
where E: Eq + Hash + Clone,

Source§

impl<E> Crdt for TwoPSet<E>
where E: Eq + Hash + Clone,

Source§

impl<N> Crdt for GCounter<N>
where N: Eq + Hash + Clone + Copy,