Struct frunk::semigroup::Max [] [src]

pub struct Max<T: Ord>(pub T);

Wrapper type for types that are ordered and can have a Max combination

Trait Implementations

impl<T: PartialEq + Ord> PartialEq for Max<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Debug + Ord> Debug for Max<T>
[src]

Formats the value using the given formatter.

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

impl<T: Clone + Ord> Clone for Max<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy + Ord> Copy for Max<T>
[src]

impl<T: PartialOrd + Ord> PartialOrd for Max<T>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: Ord + Ord> Ord for Max<T>
[src]

This method returns an Ordering between self and other. Read more

impl<T: Hash + Ord> Hash for Max<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> Semigroup for Max<T> where
    T: Ord + Clone
[src]

Associative operation taking which combines two values. Read more