[−][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: PartialOrd + Clone,
C::Leaf: Borrow<K>,
C::Annotation: Borrow<K>,
[src]
C: Compound<S>,
S: Store,
K: PartialOrd + Clone,
C::Leaf: Borrow<K>,
C::Annotation: Borrow<K>,
fn identity() -> Self
[src]
fn from_leaf(leaf: &C::Leaf) -> Self
[src]
fn from_node(node: &C) -> Self
[src]
impl<__S: Store, K: Canon<__S>> Canon<__S> for Max<K>
[src]
fn write(&self, sink: &mut impl Sink<__S>) -> Result<(), __S::Error>
[src]
fn read(source: &mut impl Source<__S>) -> Result<Self, __S::Error>
[src]
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> PartialEq<K> for Max<K> where
K: PartialOrd,
[src]
K: PartialOrd,
impl<K: PartialEq> PartialEq<Max<K>> for Max<K>
[src]
impl<K> PartialOrd<K> for Max<K> where
K: PartialOrd,
[src]
K: PartialOrd,
fn partial_cmp(&self, other: &K) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<K> PartialOrd<Max<K>> for Max<K> where
K: PartialOrd,
[src]
K: PartialOrd,
fn partial_cmp(&self, other: &Max<K>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[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>,