pub struct MaxNone<T>(_);
Expand description
Creates T::max_value()
as None
.
Trait Implementations§
source§impl<T> Ord for MaxNone<T>where
T: Ord,
impl<T> Ord for MaxNone<T>where
T: Ord,
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T> PartialEq<MaxNone<T>> for MaxNone<T>where
T: PartialEq<T>,
impl<T> PartialEq<MaxNone<T>> for MaxNone<T>where
T: PartialEq<T>,
source§impl<T> PartialOrd<MaxNone<T>> for MaxNone<T>where
T: PartialOrd<T>,
impl<T> PartialOrd<MaxNone<T>> for MaxNone<T>where
T: PartialOrd<T>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more