pub type MapUnionWithTombstonesTombstoneSingletonSetOnly<K, Val> = MapUnionWithTombstones<EmptyMap<K, Val>, SingletonSet<K>>;
Expand description
crate::collections::SingletonSet
-backed MapUnionWithTombstones
lattice.
Aliased Type§
struct MapUnionWithTombstonesTombstoneSingletonSetOnly<K, Val> { /* private fields */ }
Implementations
Source§impl<Map, TombstoneSet> MapUnionWithTombstones<Map, TombstoneSet>
impl<Map, TombstoneSet> MapUnionWithTombstones<Map, TombstoneSet>
Sourcepub fn new(map: Map, tombstones: TombstoneSet) -> Self
pub fn new(map: Map, tombstones: TombstoneSet) -> Self
Create a new MapUnionWithTombstones
from a Map
and a TombstoneSet
.
Sourcepub fn new_from(
map: impl Into<Map>,
tombstones: impl Into<TombstoneSet>,
) -> Self
pub fn new_from( map: impl Into<Map>, tombstones: impl Into<TombstoneSet>, ) -> Self
Create a new MapUnionWithTombstones
from an Into<Map>
and an Into<TombstoneSet>
.
Sourcepub fn as_reveal_ref(&self) -> (&Map, &TombstoneSet)
pub fn as_reveal_ref(&self) -> (&Map, &TombstoneSet)
Reveal the inner value as a shared reference.
Sourcepub fn as_reveal_mut(&mut self) -> (&mut Map, &mut TombstoneSet)
pub fn as_reveal_mut(&mut self) -> (&mut Map, &mut TombstoneSet)
Reveal the inner value as an exclusive reference.
Sourcepub fn into_reveal(self) -> (Map, TombstoneSet)
pub fn into_reveal(self) -> (Map, TombstoneSet)
Gets the inner by value, consuming self.
Trait Implementations
Source§impl<Map: Clone, TombstoneSet: Clone> Clone for MapUnionWithTombstones<Map, TombstoneSet>
impl<Map: Clone, TombstoneSet: Clone> Clone for MapUnionWithTombstones<Map, TombstoneSet>
Source§fn clone(&self) -> MapUnionWithTombstones<Map, TombstoneSet>
fn clone(&self) -> MapUnionWithTombstones<Map, TombstoneSet>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Map: Default, TombstoneSet: Default> Default for MapUnionWithTombstones<Map, TombstoneSet>
impl<Map: Default, TombstoneSet: Default> Default for MapUnionWithTombstones<Map, TombstoneSet>
Source§fn default() -> MapUnionWithTombstones<Map, TombstoneSet>
fn default() -> MapUnionWithTombstones<Map, TombstoneSet>
Returns the “default value” for a type. Read more
Source§impl<'de, Map, TombstoneSet> Deserialize<'de> for MapUnionWithTombstones<Map, TombstoneSet>where
Map: Deserialize<'de>,
TombstoneSet: Deserialize<'de>,
impl<'de, Map, TombstoneSet> Deserialize<'de> for MapUnionWithTombstones<Map, TombstoneSet>where
Map: Deserialize<'de>,
TombstoneSet: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Map, TombstoneSet> IsBot for MapUnionWithTombstones<Map, TombstoneSet>where
Map: Iter,
Map::Item: IsBot,
TombstoneSet: Len,
impl<Map, TombstoneSet> IsBot for MapUnionWithTombstones<Map, TombstoneSet>where
Map: Iter,
Map::Item: IsBot,
TombstoneSet: Len,
Source§impl<Map, TombstoneSet> IsTop for MapUnionWithTombstones<Map, TombstoneSet>
impl<Map, TombstoneSet> IsTop for MapUnionWithTombstones<Map, TombstoneSet>
Source§impl<MapSelf, MapOther, K, ValSelf, ValOther, TombstoneSetSelf, TombstoneSetOther> LatticeFrom<MapUnionWithTombstones<MapOther, TombstoneSetOther>> for MapUnionWithTombstones<MapSelf, TombstoneSetSelf>where
MapSelf: Keyed<Key = K, Item = ValSelf> + FromIterator<(K, ValSelf)>,
MapOther: IntoIterator<Item = (K, ValOther)>,
ValSelf: LatticeFrom<ValOther>,
TombstoneSetSelf: FromIterator<K>,
TombstoneSetOther: IntoIterator<Item = K>,
impl<MapSelf, MapOther, K, ValSelf, ValOther, TombstoneSetSelf, TombstoneSetOther> LatticeFrom<MapUnionWithTombstones<MapOther, TombstoneSetOther>> for MapUnionWithTombstones<MapSelf, TombstoneSetSelf>where
MapSelf: Keyed<Key = K, Item = ValSelf> + FromIterator<(K, ValSelf)>,
MapOther: IntoIterator<Item = (K, ValOther)>,
ValSelf: LatticeFrom<ValOther>,
TombstoneSetSelf: FromIterator<K>,
TombstoneSetOther: IntoIterator<Item = K>,
Source§fn lattice_from(
other: MapUnionWithTombstones<MapOther, TombstoneSetOther>,
) -> Self
fn lattice_from( other: MapUnionWithTombstones<MapOther, TombstoneSetOther>, ) -> Self
Convert from the
Other
lattice into Self
.Source§impl<MapSelf, MapOther, K, ValSelf, ValOther, TombstoneSetSelf, TombstoneSetOther> Merge<MapUnionWithTombstones<MapOther, TombstoneSetOther>> for MapUnionWithTombstones<MapSelf, TombstoneSetSelf>where
MapSelf: Keyed<Key = K, Item = ValSelf> + Extend<(K, ValSelf)> + for<'a> GetMut<&'a K, Item = ValSelf> + for<'b> Remove<&'b K>,
MapOther: IntoIterator<Item = (K, ValOther)>,
ValSelf: Merge<ValOther> + LatticeFrom<ValOther>,
ValOther: IsBot,
TombstoneSetSelf: Extend<K> + Len + for<'a> Get<&'a K> + Iter<Item = K>,
TombstoneSetOther: IntoIterator<Item = K>,
impl<MapSelf, MapOther, K, ValSelf, ValOther, TombstoneSetSelf, TombstoneSetOther> Merge<MapUnionWithTombstones<MapOther, TombstoneSetOther>> for MapUnionWithTombstones<MapSelf, TombstoneSetSelf>where
MapSelf: Keyed<Key = K, Item = ValSelf> + Extend<(K, ValSelf)> + for<'a> GetMut<&'a K, Item = ValSelf> + for<'b> Remove<&'b K>,
MapOther: IntoIterator<Item = (K, ValOther)>,
ValSelf: Merge<ValOther> + LatticeFrom<ValOther>,
ValOther: IsBot,
TombstoneSetSelf: Extend<K> + Len + for<'a> Get<&'a K> + Iter<Item = K>,
TombstoneSetOther: IntoIterator<Item = K>,
Source§fn merge(
&mut self,
other: MapUnionWithTombstones<MapOther, TombstoneSetOther>,
) -> bool
fn merge( &mut self, other: MapUnionWithTombstones<MapOther, TombstoneSetOther>, ) -> bool
Source§fn merge_owned(this: Self, delta: Other) -> Selfwhere
Self: Sized,
fn merge_owned(this: Self, delta: Other) -> Selfwhere
Self: Sized,
Merge
this
and delta
together, returning the new value.Source§impl<MapSelf, MapOther, K, ValSelf, ValOther, TombstoneSetSelf, TombstoneSetOther> PartialEq<MapUnionWithTombstones<MapOther, TombstoneSetOther>> for MapUnionWithTombstones<MapSelf, TombstoneSetSelf>where
MapSelf: Map<K, ValSelf, Key = K, Item = ValSelf> + MapIter + SimpleKeyedRef,
MapOther: Map<K, ValOther, Key = K, Item = ValOther> + MapIter + SimpleKeyedRef,
ValSelf: PartialEq<ValOther> + IsBot,
ValOther: IsBot,
TombstoneSetSelf: Len + Iter<Item = K> + for<'a> Get<&'a K>,
TombstoneSetOther: Len + Iter<Item = K> + for<'b> Get<&'b K>,
impl<MapSelf, MapOther, K, ValSelf, ValOther, TombstoneSetSelf, TombstoneSetOther> PartialEq<MapUnionWithTombstones<MapOther, TombstoneSetOther>> for MapUnionWithTombstones<MapSelf, TombstoneSetSelf>where
MapSelf: Map<K, ValSelf, Key = K, Item = ValSelf> + MapIter + SimpleKeyedRef,
MapOther: Map<K, ValOther, Key = K, Item = ValOther> + MapIter + SimpleKeyedRef,
ValSelf: PartialEq<ValOther> + IsBot,
ValOther: IsBot,
TombstoneSetSelf: Len + Iter<Item = K> + for<'a> Get<&'a K>,
TombstoneSetOther: Len + Iter<Item = K> + for<'b> Get<&'b K>,
Source§fn eq(
&self,
other: &MapUnionWithTombstones<MapOther, TombstoneSetOther>,
) -> bool
fn eq( &self, other: &MapUnionWithTombstones<MapOther, TombstoneSetOther>, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.