Enum noosphere_core::data::map::Op
source · pub enum Op<K, V, A>where
K: Ord,
V: Val<A>,
A: Ord,{
Rm {
clock: VClock<A>,
keyset: BTreeSet<K, Global>,
},
Up {
dot: Dot<A>,
key: K,
op: <V as CmRDT>::Op,
},
}Expand description
Operations which can be applied to the Map CRDT
Variants§
Rm
Fields
Remove a key from the map
Up
Fields
§
key: KKey of the value to update
Update an entry in the map
Trait Implementations§
source§impl<K, V, A> Clone for Op<K, V, A>where
K: Clone + Ord,
V: Clone + Val<A>,
A: Clone + Ord,
<V as CmRDT>::Op: Clone,
impl<K, V, A> Clone for Op<K, V, A>where
K: Clone + Ord,
V: Clone + Val<A>,
A: Clone + Ord,
<V as CmRDT>::Op: Clone,
source§impl<K, V, A> Debug for Op<K, V, A>where
K: Debug + Ord,
V: Debug + Val<A>,
A: Debug + Ord,
<V as CmRDT>::Op: Debug,
impl<K, V, A> Debug for Op<K, V, A>where
K: Debug + Ord,
V: Debug + Val<A>,
A: Debug + Ord,
<V as CmRDT>::Op: Debug,
source§impl<'de, K, V, A> Deserialize<'de> for Op<K, V, A>where
K: Ord + Deserialize<'de>,
V: Val<A>,
A: Ord + Deserialize<'de>,
<V as CmRDT>::Op: Deserialize<'de>,
impl<'de, K, V, A> Deserialize<'de> for Op<K, V, A>where
K: Ord + Deserialize<'de>,
V: Val<A>,
A: Ord + Deserialize<'de>,
<V as CmRDT>::Op: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Op<K, V, A>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Op<K, V, A>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<K, V, A> PartialEq<Op<K, V, A>> for Op<K, V, A>where
K: PartialEq<K> + Ord,
V: PartialEq<V> + Val<A>,
A: PartialEq<A> + Ord,
<V as CmRDT>::Op: PartialEq<<V as CmRDT>::Op>,
impl<K, V, A> PartialEq<Op<K, V, A>> for Op<K, V, A>where
K: PartialEq<K> + Ord,
V: PartialEq<V> + Val<A>,
A: PartialEq<A> + Ord,
<V as CmRDT>::Op: PartialEq<<V as CmRDT>::Op>,
source§impl<K, V, A> Serialize for Op<K, V, A>where
K: Ord + Serialize,
V: Val<A>,
A: Ord + Serialize,
<V as CmRDT>::Op: Serialize,
impl<K, V, A> Serialize for Op<K, V, A>where
K: Ord + Serialize,
V: Val<A>,
A: Ord + Serialize,
<V as CmRDT>::Op: Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<K, V, A> Eq for Op<K, V, A>where
K: Eq + Ord,
V: Eq + Val<A>,
A: Eq + Ord,
<V as CmRDT>::Op: Eq,
impl<K, V, A> StructuralEq for Op<K, V, A>where
K: Ord,
V: Val<A>,
A: Ord,
impl<K, V, A> StructuralPartialEq for Op<K, V, A>where
K: Ord,
V: Val<A>,
A: Ord,
Auto Trait Implementations§
impl<K, V, A> RefUnwindSafe for Op<K, V, A>where
A: RefUnwindSafe,
K: RefUnwindSafe,
<V as CmRDT>::Op: RefUnwindSafe,
impl<K, V, A> Send for Op<K, V, A>where
A: Send,
K: Send,
<V as CmRDT>::Op: Send,
impl<K, V, A> Sync for Op<K, V, A>where
A: Sync,
K: Sync,
<V as CmRDT>::Op: Sync,
impl<K, V, A> Unpin for Op<K, V, A>where
A: Unpin,
K: Unpin,
<V as CmRDT>::Op: Unpin,
impl<K, V, A> UnwindSafe for Op<K, V, A>where
A: UnwindSafe + RefUnwindSafe,
K: UnwindSafe + RefUnwindSafe,
<V as CmRDT>::Op: UnwindSafe,
Blanket Implementations§
source§impl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere
T: DagJson,
source§impl<T> DagJson for Twhere
T: Serialize + DeserializeOwned,
impl<T> DagJson for Twhere
T: Serialize + DeserializeOwned,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.