[−][src]Enum microkelvin::Max
Annotation to keep track of the largest element of a collection
Variants
Identity of max, everything else is larger
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]
C: Compound<S>,
S: Store,
K: Ord + Clone,
C::Leaf: Borrow<K>,
C::Annotation: Borrow<Max<K>>,
pub fn identity() -> Self
[src]
pub fn from_leaf(leaf: &C::Leaf) -> Self
[src]
pub fn from_node(node: &C) -> Self
[src]
impl<__S: Store, K: Canon<__S>> Canon<__S> for Max<K>
[src]
pub fn write(&self, sink: &mut impl Sink<__S>) -> Result<(), __S::Error>
[src]
pub fn read(source: &mut impl Source<__S>) -> Result<Self, __S::Error>
[src]
pub fn encoded_len(&self) -> usize
[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]
K: Ord + Eq,
pub fn cmp(&self, other: &Max<K>) -> 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<K> for Max<K> where
K: PartialEq,
[src]
K: PartialEq,
impl<K: PartialEq> PartialEq<Max<K>> for Max<K>
[src]
impl<K> PartialOrd<K> for Max<K> where
K: PartialOrd + Eq,
[src]
K: PartialOrd + Eq,
pub fn partial_cmp(&self, k: &K) -> 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<K> PartialOrd<Max<K>> for Max<K> where
K: PartialOrd + Eq,
[src]
K: PartialOrd + Eq,
pub fn partial_cmp(&self, other: &Max<K>) -> 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<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,
K: RefUnwindSafe,
impl<K> Send for Max<K> where
K: Send,
K: Send,
impl<K> Sync for Max<K> where
K: Sync,
K: Sync,
impl<K> Unpin for Max<K> where
K: Unpin,
K: Unpin,
impl<K> UnwindSafe for Max<K> where
K: UnwindSafe,
K: 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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,