Type Alias MapUnionBTreeMap

Source
pub type MapUnionBTreeMap<K, Val> = MapUnion<BTreeMap<K, Val>>;
Expand description

Aliased Type§

struct MapUnionBTreeMap<K, Val>(/* private fields */);

Implementations

Source§

impl<Map> MapUnion<Map>

Source

pub fn new(val: Map) -> Self

Create a new MapUnion from a Map.

Source

pub fn new_from(val: impl Into<Map>) -> Self

Create a new MapUnion from an Into<Map>.

Source

pub fn as_reveal_ref(&self) -> &Map

Reveal the inner value as a shared reference.

Source

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

Reveal the inner value as an exclusive reference.

Source

pub fn into_reveal(self) -> Map

Gets the inner by value, consuming self.

Trait Implementations

Source§

impl<Map, K, Val> Atomize for MapUnion<Map>
where Map: 'static + IntoIterator<Item = (K, Val)> + Keyed<Key = K, Item = Val> + Extend<(K, Val)> + for<'a> GetMut<&'a K, Item = Val>, K: 'static + Clone, Val: 'static + Atomize + LatticeFrom<<Val as Atomize>::Atom>,

Source§

type Atom = MapUnion<SingletonMap<K, <Val as Atomize>::Atom>>

The type of atoms for this lattice.
Source§

type AtomIter = Box<dyn Iterator<Item = <MapUnion<Map> as Atomize>::Atom>>

The iter type iterating the antichain atoms.
Source§

fn atomize(self) -> Self::AtomIter

Atomize self: convert into an iter of atoms. Read more
Source§

impl<Map: Clone> Clone for MapUnion<Map>

Source§

fn clone(&self) -> MapUnion<Map>

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> Debug for MapUnion<Map>

Source§

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

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

impl<Map, Val> DeepReveal for MapUnion<Map>
where Map: Keyed<Item = Val> + MapMapValues<Val>, Val: DeepReveal,

Source§

type Revealed = <Map as MapMapValues<Val>>::MapValue<<Val as DeepReveal>::Revealed>

The underlying type when revealed.
Source§

fn deep_reveal(self) -> Self::Revealed

Reveals the underlying lattice types recursively.
Source§

impl<Map: Default> Default for MapUnion<Map>

Source§

fn default() -> MapUnion<Map>

Returns the “default value” for a type. Read more
Source§

impl<'de, Map> Deserialize<'de> for MapUnion<Map>
where Map: 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> IsBot for MapUnion<Map>
where Map: Iter, Map::Item: IsBot,

Source§

fn is_bot(&self) -> bool

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

impl<Map> IsTop for MapUnion<Map>

Source§

fn is_top(&self) -> bool

Returns if self is lattice top (⊤). Read more
Source§

impl<MapSelf, MapOther, K, ValSelf, ValOther> LatticeFrom<MapUnion<MapOther>> for MapUnion<MapSelf>
where MapSelf: Keyed<Key = K, Item = ValSelf> + FromIterator<(K, ValSelf)>, MapOther: IntoIterator<Item = (K, ValOther)>, ValSelf: LatticeFrom<ValOther>,

Source§

fn lattice_from(other: MapUnion<MapOther>) -> Self

Convert from the Other lattice into Self.
Source§

impl<MapSelf, MapOther, K, ValSelf, ValOther> Merge<MapUnion<MapOther>> for MapUnion<MapSelf>
where MapSelf: Keyed<Key = K, Item = ValSelf> + Extend<(K, ValSelf)> + for<'a> GetMut<&'a K, Item = ValSelf>, MapOther: IntoIterator<Item = (K, ValOther)>, ValSelf: Merge<ValOther> + LatticeFrom<ValOther>, ValOther: IsBot,

Source§

fn merge(&mut self, other: MapUnion<MapOther>) -> 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> PartialEq<MapUnion<MapOther>> for MapUnion<MapSelf>
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,

Source§

fn eq(&self, other: &MapUnion<MapOther>) -> 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> PartialOrd<MapUnion<MapOther>> for MapUnion<MapSelf>
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,

Source§

fn partial_cmp(&self, other: &MapUnion<MapOther>) -> 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> Serialize for MapUnion<Map>
where Map: 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> Copy for MapUnion<Map>

Source§

impl<MapSelf> Eq for MapUnion<MapSelf>
where Self: PartialEq,

Source§

impl<MapSelf, MapOther> LatticeOrd<MapUnion<MapOther>> for MapUnion<MapSelf>
where Self: PartialOrd<MapUnion<MapOther>>,