[−][src]Struct pergola::BTreeMapWithUnion
This is a lattice for maps that contain other lattices as values. The join operator takes the union of (key, value) pairs for keys present in only one map -- equivalent to an elementwise join-with-unit -- and the elementwise join of values for keys that exist in both maps.
As with BitSet
, this avoids the typical lexicographic order on
maps in favour of the join-induced partial order: a subset relation
extended with the lattice orders of the values when the same key is
present in both maps.
Trait Implementations
impl<K: Clone + DefTraits, VD: Clone + LatticeDef> Clone for BTreeMapWithUnion<K, VD>
[src]
pub fn clone(&self) -> BTreeMapWithUnion<K, VD>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<K: Debug + DefTraits, VD: Debug + LatticeDef> Debug for BTreeMapWithUnion<K, VD>
[src]
impl<K: Default + DefTraits, VD: Default + LatticeDef> Default for BTreeMapWithUnion<K, VD>
[src]
pub fn default() -> BTreeMapWithUnion<K, VD>
[src]
impl<'de, K: DefTraits, VD: LatticeDef> Deserialize<'de> for BTreeMapWithUnion<K, VD>
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<K: Eq + DefTraits, VD: Eq + LatticeDef> Eq for BTreeMapWithUnion<K, VD>
[src]
impl<K: Hash + DefTraits, VD: Hash + LatticeDef> Hash for BTreeMapWithUnion<K, VD>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<K: DefTraits, VD: LatticeDef> LatticeDef for BTreeMapWithUnion<K, VD> where
VD::T: Clone,
[src]
VD::T: Clone,
type T = BTreeMap<K, LatticeElt<VD>>
pub fn unit() -> Self::T
[src]
pub fn join(lhs: &Self::T, rhs: &Self::T) -> Self::T
[src]
pub fn partial_order(lhs: &Self::T, rhs: &Self::T) -> Option<Ordering>
[src]
impl<K: Ord + DefTraits, VD: Ord + LatticeDef> Ord for BTreeMapWithUnion<K, VD>
[src]
pub fn cmp(&self, other: &BTreeMapWithUnion<K, VD>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<K: PartialEq + DefTraits, VD: PartialEq + LatticeDef> PartialEq<BTreeMapWithUnion<K, VD>> for BTreeMapWithUnion<K, VD>
[src]
pub fn eq(&self, other: &BTreeMapWithUnion<K, VD>) -> bool
[src]
pub fn ne(&self, other: &BTreeMapWithUnion<K, VD>) -> bool
[src]
impl<K: PartialOrd + DefTraits, VD: PartialOrd + LatticeDef> PartialOrd<BTreeMapWithUnion<K, VD>> for BTreeMapWithUnion<K, VD>
[src]
pub fn partial_cmp(&self, other: &BTreeMapWithUnion<K, VD>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &BTreeMapWithUnion<K, VD>) -> bool
[src]
pub fn le(&self, other: &BTreeMapWithUnion<K, VD>) -> bool
[src]
pub fn gt(&self, other: &BTreeMapWithUnion<K, VD>) -> bool
[src]
pub fn ge(&self, other: &BTreeMapWithUnion<K, VD>) -> bool
[src]
impl<K: DefTraits, VD: LatticeDef> Serialize for BTreeMapWithUnion<K, VD>
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<K: DefTraits, VD: LatticeDef> StructuralEq for BTreeMapWithUnion<K, VD>
[src]
impl<K: DefTraits, VD: LatticeDef> StructuralPartialEq for BTreeMapWithUnion<K, VD>
[src]
Auto Trait Implementations
impl<K, VD> RefUnwindSafe for BTreeMapWithUnion<K, VD> where
K: RefUnwindSafe,
VD: RefUnwindSafe,
[src]
K: RefUnwindSafe,
VD: RefUnwindSafe,
impl<K, VD> Send for BTreeMapWithUnion<K, VD> where
K: Send,
VD: Send,
[src]
K: Send,
VD: Send,
impl<K, VD> Sync for BTreeMapWithUnion<K, VD> where
K: Sync,
VD: Sync,
[src]
K: Sync,
VD: Sync,
impl<K, VD> Unpin for BTreeMapWithUnion<K, VD> where
K: Unpin,
VD: Unpin,
[src]
K: Unpin,
VD: Unpin,
impl<K, VD> UnwindSafe for BTreeMapWithUnion<K, VD> where
K: UnwindSafe,
VD: UnwindSafe,
[src]
K: UnwindSafe,
VD: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,