Type Alias MapUnionWithTombstonesSingletonMapOnly

Source
pub type MapUnionWithTombstonesSingletonMapOnly<K, Val> = MapUnionWithTombstones<SingletonMap<K, Val>, EmptySet<K>>;
Expand description

Aliased Type§

struct MapUnionWithTombstonesSingletonMapOnly<K, Val> { /* private fields */ }

Implementations

Source§

impl<Map, TombstoneSet> MapUnionWithTombstones<Map, TombstoneSet>

Source

pub fn new(map: Map, tombstones: TombstoneSet) -> Self

Create a new MapUnionWithTombstones from a Map and a TombstoneSet.

Source

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>.

Source

pub fn as_reveal_ref(&self) -> (&Map, &TombstoneSet)

Reveal the inner value as a shared reference.

Source

pub fn as_reveal_mut(&mut self) -> (&mut Map, &mut TombstoneSet)

Reveal the inner value as an exclusive reference.

Source

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>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<Map: Debug, TombstoneSet: Debug> Debug for MapUnionWithTombstones<Map, TombstoneSet>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Map: Default, TombstoneSet: Default> Default for MapUnionWithTombstones<Map, TombstoneSet>

Source§

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>,

Source§

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,

Source§

fn is_bot(&self) -> bool

Returns if self is lattice bottom (⊥). Read more
Source§

impl<Map, TombstoneSet> IsTop for MapUnionWithTombstones<Map, TombstoneSet>

Source§

fn is_top(&self) -> bool

Returns if self is lattice top (⊤). Read more
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>,

Source§

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>,

Source§

fn merge( &mut self, other: MapUnionWithTombstones<MapOther, TombstoneSetOther>, ) -> bool

Merge other into the self lattice. Read more
Source§

fn merge_owned(this: Self, delta: Other) -> Self
where 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>,

Source§

fn eq( &self, other: &MapUnionWithTombstones<MapOther, TombstoneSetOther>, ) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<MapSelf, MapOther, K, ValSelf, ValOther, TombstoneSetSelf, TombstoneSetOther> PartialOrd<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: PartialOrd<ValOther> + IsBot, ValOther: IsBot, TombstoneSetSelf: Len + Iter<Item = K> + for<'a> Get<&'a K>, TombstoneSetOther: Len + Iter<Item = K> + for<'a> Get<&'a K>,

Source§

fn partial_cmp( &self, other: &MapUnionWithTombstones<MapOther, TombstoneSetOther>, ) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<Map, TombstoneSet> Serialize for MapUnionWithTombstones<Map, TombstoneSet>
where Map: Serialize, TombstoneSet: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<Map: Copy, TombstoneSet: Copy> Copy for MapUnionWithTombstones<Map, TombstoneSet>

Source§

impl<MapSelf, TombstoneSetSelf> Eq for MapUnionWithTombstones<MapSelf, TombstoneSetSelf>
where Self: PartialEq,

Source§

impl<MapSelf, MapOther, TombstoneSetSelf, TombstoneSetOther> LatticeOrd<MapUnionWithTombstones<MapOther, TombstoneSetOther>> for MapUnionWithTombstones<MapSelf, TombstoneSetSelf>
where Self: PartialOrd<MapUnionWithTombstones<MapOther, TombstoneSetOther>>,