[][src]Enum microkelvin::Max

pub enum Max<K> {
    NegativeInfinity,
    Maximum(K),
}

Annotation to keep track of the largest element of a collection

Variants

NegativeInfinity

Identity of max, everything else is larger

Maximum(K)

Actual max value

Trait Implementations

impl<C, S, K> Annotation<C, S> for Max<K> where
    C: Compound<S>,
    S: Store,
    K: Ord + Clone,
    C::Leaf: Borrow<K>,
    C::Annotation: Borrow<Max<K>>, 
[src]

impl<__S: Store, K: Canon<__S>> Canon<__S> for Max<K>[src]

impl<K: Clone> Clone for Max<K>[src]

impl<K: Copy> Copy for Max<K>[src]

impl<K: Debug> Debug for Max<K>[src]

impl<K: Eq> Eq for Max<K>[src]

impl<K> Ord for Max<K> where
    K: Ord + Eq
[src]

impl<K> PartialEq<K> for Max<K> where
    K: PartialEq
[src]

impl<K: PartialEq> PartialEq<Max<K>> for Max<K>[src]

impl<K> PartialOrd<K> for Max<K> where
    K: PartialOrd + Eq
[src]

impl<K> PartialOrd<Max<K>> for Max<K> where
    K: PartialOrd + Eq
[src]

impl<K> StructuralEq for Max<K>[src]

impl<K> StructuralPartialEq for Max<K>[src]

Auto Trait Implementations

impl<K> RefUnwindSafe for Max<K> where
    K: RefUnwindSafe

impl<K> Send for Max<K> where
    K: Send

impl<K> Sync for Max<K> where
    K: Sync

impl<K> Unpin for Max<K> where
    K: Unpin

impl<K> UnwindSafe for Max<K> where
    K: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.