[−][src]Struct pergola::LatticeElt
Write code that uses lattices over this type, and it will delegate
to the functions of the parameter LatticeDef
.
Fields
value: D::T
Implementations
impl<D: LatticeDef> LatticeElt<D>
[src]
Trait Implementations
impl<D: LatticeDef, '_> Add<&'_ LatticeElt<D>> for LatticeElt<D>
[src]
type Output = LatticeElt<D>
The resulting type after applying the +
operator.
pub fn add(self, other: &LatticeElt<D>) -> Self
[src]
impl<'lhs, 'rhs, D: LatticeDef> Add<&'rhs LatticeElt<D>> for &'lhs LatticeElt<D>
[src]
type Output = LatticeElt<D>
The resulting type after applying the +
operator.
pub fn add(self, other: &'rhs LatticeElt<D>) -> LatticeElt<D>
[src]
impl<D: LatticeDef> Add<LatticeElt<D>> for LatticeElt<D>
[src]
type Output = LatticeElt<D>
The resulting type after applying the +
operator.
pub fn add(self, other: Self) -> Self
[src]
impl<D: LatticeDef, '_> Add<LatticeElt<D>> for &'_ LatticeElt<D>
[src]
type Output = LatticeElt<D>
The resulting type after applying the +
operator.
pub fn add(self, other: LatticeElt<D>) -> LatticeElt<D>
[src]
impl<D: LatticeDef> Clone for LatticeElt<D> where
D::T: Clone,
[src]
D::T: Clone,
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<D: LatticeDef> Copy for LatticeElt<D> where
D::T: Copy,
[src]
D::T: Copy,
impl<D: Debug + LatticeDef> Debug for LatticeElt<D> where
D::T: Debug,
[src]
D::T: Debug,
impl<D: LatticeDef> Default for LatticeElt<D>
[src]
impl<'de, D: LatticeDef> Deserialize<'de> for LatticeElt<D> where
D::T: Deserialize<'de>,
[src]
D::T: Deserialize<'de>,
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<D: LatticeDef> Eq for LatticeElt<D> where
D::T: Eq,
[src]
D::T: Eq,
impl<A: LatticeDef, B: LatticeDef, C: LatticeDef, D: LatticeDef, E: LatticeDef> From<(LatticeElt<A>, LatticeElt<B>, LatticeElt<C>, LatticeElt<D>, LatticeElt<E>)> for LatticeElt<Tuple5<A, B, C, D, E>>
[src]
pub fn from(
t: (LatticeElt<A>, LatticeElt<B>, LatticeElt<C>, LatticeElt<D>, LatticeElt<E>)
) -> Self
[src]
t: (LatticeElt<A>, LatticeElt<B>, LatticeElt<C>, LatticeElt<D>, LatticeElt<E>)
) -> Self
impl<A: LatticeDef, B: LatticeDef, C: LatticeDef, D: LatticeDef> From<(LatticeElt<A>, LatticeElt<B>, LatticeElt<C>, LatticeElt<D>)> for LatticeElt<Tuple4<A, B, C, D>>
[src]
pub fn from(
t: (LatticeElt<A>, LatticeElt<B>, LatticeElt<C>, LatticeElt<D>)
) -> Self
[src]
t: (LatticeElt<A>, LatticeElt<B>, LatticeElt<C>, LatticeElt<D>)
) -> Self
impl<A: LatticeDef, B: LatticeDef, C: LatticeDef> From<(LatticeElt<A>, LatticeElt<B>, LatticeElt<C>)> for LatticeElt<Tuple3<A, B, C>>
[src]
pub fn from(t: (LatticeElt<A>, LatticeElt<B>, LatticeElt<C>)) -> Self
[src]
impl<A: LatticeDef, B: LatticeDef> From<(LatticeElt<A>, LatticeElt<B>)> for LatticeElt<Tuple2<A, B>>
[src]
pub fn from(t: (LatticeElt<A>, LatticeElt<B>)) -> Self
[src]
impl<K: DefTraits, VD: LatticeDef> From<BTreeMap<K, LatticeElt<VD>>> for LatticeElt<BTreeMapWithUnion<K, VD>> where
VD::T: Clone,
[src]
VD::T: Clone,
pub fn from(t: BTreeMap<K, LatticeElt<VD>>) -> Self
[src]
impl<K: DefTraits, VD: LatticeDef> From<BTreeMap<K, LatticeElt<VD>>> for LatticeElt<BTreeMapWithIntersection<K, VD>> where
VD::T: Clone,
[src]
VD::T: Clone,
pub fn from(t: BTreeMap<K, LatticeElt<VD>>) -> Self
[src]
impl<U: DefTraits> From<BTreeSet<U>> for LatticeElt<BTreeSetWithUnion<U>>
[src]
impl<U: DefTraits> From<BTreeSet<U>> for LatticeElt<BTreeSetWithIntersection<U>>
[src]
impl From<BitSet<u32>> for LatticeElt<BitSetWithUnion>
[src]
impl From<BitSet<u32>> for LatticeElt<BitSetWithIntersection>
[src]
impl<M: DefTraits + MaxUnitDefault> From<M> for LatticeElt<MaxDef<M>>
[src]
impl<M: DefTraits + MaxUnitMinValue> From<M> for LatticeElt<MaxNum<M>>
[src]
impl<M: DefTraits> From<M> for LatticeElt<MinOpt<M>>
[src]
impl<M: DefTraits + Bounded> From<M> for LatticeElt<MinNum<M>>
[src]
impl<K: DefTraits, VD: LatticeDef> From<OrdMap<K, LatticeElt<VD>>> for LatticeElt<ArcOrdMapWithUnion<K, VD>> where
VD::T: Clone,
[src]
VD::T: Clone,
pub fn from(t: ArcOrdMap<K, LatticeElt<VD>>) -> Self
[src]
impl<K: DefTraits, VD: LatticeDef> From<OrdMap<K, LatticeElt<VD>>> for LatticeElt<ArcOrdMapWithIntersection<K, VD>> where
VD::T: Clone,
[src]
VD::T: Clone,
pub fn from(t: ArcOrdMap<K, LatticeElt<VD>>) -> Self
[src]
impl<K: DefTraits, VD: LatticeDef> From<OrdMap<K, LatticeElt<VD>>> for LatticeElt<RcOrdMapWithUnion<K, VD>> where
VD::T: Clone,
[src]
VD::T: Clone,
pub fn from(t: RcOrdMap<K, LatticeElt<VD>>) -> Self
[src]
impl<K: DefTraits, VD: LatticeDef> From<OrdMap<K, LatticeElt<VD>>> for LatticeElt<RcOrdMapWithIntersection<K, VD>> where
VD::T: Clone,
[src]
VD::T: Clone,
pub fn from(t: RcOrdMap<K, LatticeElt<VD>>) -> Self
[src]
impl<U: DefTraits> From<OrdSet<U>> for LatticeElt<ArcOrdSetWithUnion<U>>
[src]
impl<U: DefTraits> From<OrdSet<U>> for LatticeElt<ArcOrdSetWithIntersection<U>>
[src]
impl<U: DefTraits> From<OrdSet<U>> for LatticeElt<RcOrdSetWithUnion<U>>
[src]
impl<U: DefTraits> From<OrdSet<U>> for LatticeElt<RcOrdSetWithIntersection<U>>
[src]
impl<D: LatticeDef> Hash for LatticeElt<D> where
D::T: Hash,
[src]
D::T: Hash,
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<D: LatticeDef> Ord for LatticeElt<D> where
D::T: Ord,
[src]
D::T: Ord,
pub fn cmp(&self, other: &Self) -> 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<D: LatticeDef> PartialEq<LatticeElt<D>> for LatticeElt<D>
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<D: LatticeDef> PartialOrd<LatticeElt<D>> for LatticeElt<D>
[src]
pub fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<D: LatticeDef> Serialize for LatticeElt<D> where
D::T: Serialize,
[src]
D::T: Serialize,
Auto Trait Implementations
impl<D> RefUnwindSafe for LatticeElt<D> where
<D as LatticeDef>::T: RefUnwindSafe,
[src]
<D as LatticeDef>::T: RefUnwindSafe,
impl<D> Send for LatticeElt<D> where
<D as LatticeDef>::T: Send,
[src]
<D as LatticeDef>::T: Send,
impl<D> Sync for LatticeElt<D> where
<D as LatticeDef>::T: Sync,
[src]
<D as LatticeDef>::T: Sync,
impl<D> Unpin for LatticeElt<D> where
<D as LatticeDef>::T: Unpin,
[src]
<D as LatticeDef>::T: Unpin,
impl<D> UnwindSafe for LatticeElt<D> where
<D as LatticeDef>::T: UnwindSafe,
[src]
<D as LatticeDef>::T: 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>,