[−][src]Struct pergola::BTreeMapWithIntersection
Similar to other intersection-based lattices in this crate, this
lattice is a map that stores inner lattices and joins using
intersection. Maps are represented as Option<BTreeMap>
and the
unit is again a putative "maximum" map-with-all-possible-keys
(represented by None
).
Trait Implementations
impl<K: Clone + DefTraits, VD: Clone + LatticeDef> Clone for BTreeMapWithIntersection<K, VD>
[src]
pub fn clone(&self) -> BTreeMapWithIntersection<K, VD>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<K: Debug + DefTraits, VD: Debug + LatticeDef> Debug for BTreeMapWithIntersection<K, VD>
[src]
impl<K: Default + DefTraits, VD: Default + LatticeDef> Default for BTreeMapWithIntersection<K, VD>
[src]
pub fn default() -> BTreeMapWithIntersection<K, VD>
[src]
impl<'de, K: DefTraits, VD: LatticeDef> Deserialize<'de> for BTreeMapWithIntersection<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 BTreeMapWithIntersection<K, VD>
[src]
impl<K: Hash + DefTraits, VD: Hash + LatticeDef> Hash for BTreeMapWithIntersection<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 BTreeMapWithIntersection<K, VD> where
VD::T: Clone,
[src]
VD::T: Clone,
type T = Option<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 BTreeMapWithIntersection<K, VD>
[src]
pub fn cmp(&self, other: &BTreeMapWithIntersection<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<BTreeMapWithIntersection<K, VD>> for BTreeMapWithIntersection<K, VD>
[src]
pub fn eq(&self, other: &BTreeMapWithIntersection<K, VD>) -> bool
[src]
pub fn ne(&self, other: &BTreeMapWithIntersection<K, VD>) -> bool
[src]
impl<K: PartialOrd + DefTraits, VD: PartialOrd + LatticeDef> PartialOrd<BTreeMapWithIntersection<K, VD>> for BTreeMapWithIntersection<K, VD>
[src]
pub fn partial_cmp(
&self,
other: &BTreeMapWithIntersection<K, VD>
) -> Option<Ordering>
[src]
&self,
other: &BTreeMapWithIntersection<K, VD>
) -> Option<Ordering>
pub fn lt(&self, other: &BTreeMapWithIntersection<K, VD>) -> bool
[src]
pub fn le(&self, other: &BTreeMapWithIntersection<K, VD>) -> bool
[src]
pub fn gt(&self, other: &BTreeMapWithIntersection<K, VD>) -> bool
[src]
pub fn ge(&self, other: &BTreeMapWithIntersection<K, VD>) -> bool
[src]
impl<K: DefTraits, VD: LatticeDef> Serialize for BTreeMapWithIntersection<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 BTreeMapWithIntersection<K, VD>
[src]
impl<K: DefTraits, VD: LatticeDef> StructuralPartialEq for BTreeMapWithIntersection<K, VD>
[src]
Auto Trait Implementations
impl<K, VD> RefUnwindSafe for BTreeMapWithIntersection<K, VD> where
K: RefUnwindSafe,
VD: RefUnwindSafe,
[src]
K: RefUnwindSafe,
VD: RefUnwindSafe,
impl<K, VD> Send for BTreeMapWithIntersection<K, VD> where
K: Send,
VD: Send,
[src]
K: Send,
VD: Send,
impl<K, VD> Sync for BTreeMapWithIntersection<K, VD> where
K: Sync,
VD: Sync,
[src]
K: Sync,
VD: Sync,
impl<K, VD> Unpin for BTreeMapWithIntersection<K, VD> where
K: Unpin,
VD: Unpin,
[src]
K: Unpin,
VD: Unpin,
impl<K, VD> UnwindSafe for BTreeMapWithIntersection<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>,