Enum nstack::annotation::MaxKey
source · [−]pub enum MaxKey<K> {
NegativeInfinity,
Maximum(K),
}
Variants
NegativeInfinity
Every other key is larger
Maximum(K)
Actual max key
Trait Implementations
sourceimpl<T, K> Annotation<NStack<T, MaxKey<K>>> for MaxKey<K>where
T: Keyed<K>,
K: Clone + PartialOrd,
impl<T, K> Annotation<NStack<T, MaxKey<K>>> for MaxKey<K>where
T: Keyed<K>,
K: Clone + PartialOrd,
sourcefn from_child(stack: &NStack<T, MaxKey<K>>) -> Self
fn from_child(stack: &NStack<T, MaxKey<K>>) -> Self
Compute the annotation from the child.
sourceimpl<K: PartialEq> PartialEq<MaxKey<K>> for MaxKey<K>
impl<K: PartialEq> PartialEq<MaxKey<K>> for MaxKey<K>
sourceimpl<K> PartialOrd<K> for MaxKey<K>where
K: PartialOrd,
impl<K> PartialOrd<K> for MaxKey<K>where
K: PartialOrd,
sourcefn partial_cmp(&self, other: &K) -> Option<Ordering>
fn partial_cmp(&self, other: &K) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl<K> PartialOrd<MaxKey<K>> for MaxKey<K>where
K: PartialOrd,
impl<K> PartialOrd<MaxKey<K>> for MaxKey<K>where
K: PartialOrd,
sourcefn partial_cmp(&self, other: &MaxKey<K>) -> Option<Ordering>
fn partial_cmp(&self, other: &MaxKey<K>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moreimpl<K: Copy> Copy for MaxKey<K>
impl<K: Eq> Eq for MaxKey<K>
impl<K> StructuralEq for MaxKey<K>
impl<K> StructuralPartialEq for MaxKey<K>
Auto Trait Implementations
impl<K> RefUnwindSafe for MaxKey<K>where
K: RefUnwindSafe,
impl<K> Send for MaxKey<K>where
K: Send,
impl<K> Sync for MaxKey<K>where
K: Sync,
impl<K> Unpin for MaxKey<K>where
K: Unpin,
impl<K> UnwindSafe for MaxKey<K>where
K: UnwindSafe,
Blanket Implementations
sourceimpl<'a, C, A> Annotation<&'a C> for Awhere
A: Annotation<C>,
impl<'a, C, A> Annotation<&'a C> for Awhere
A: Annotation<C>,
sourcefn from_child(t: &&'a C) -> A
fn from_child(t: &&'a C) -> A
Compute the annotation from the child.
sourceimpl<'a, C, A> Annotation<&'a mut C> for Awhere
A: Annotation<C>,
impl<'a, C, A> Annotation<&'a mut C> for Awhere
A: Annotation<C>,
sourcefn from_child(t: &&'a mut C) -> A
fn from_child(t: &&'a mut C) -> A
Compute the annotation from the child.
sourceimpl<C, A> Annotation<Arc<C>> for Awhere
A: Annotation<C>,
impl<C, A> Annotation<Arc<C>> for Awhere
A: Annotation<C>,
sourcefn from_child(t: &Arc<C>) -> A
fn from_child(t: &Arc<C>) -> A
Compute the annotation from the child.
sourceimpl<C, A> Annotation<Box<C, Global>> for Awhere
A: Annotation<C>,
impl<C, A> Annotation<Box<C, Global>> for Awhere
A: Annotation<C>,
sourcefn from_child(t: &Box<C, Global>) -> A
fn from_child(t: &Box<C, Global>) -> A
Compute the annotation from the child.
sourceimpl<C, A> Annotation<Rc<C>> for Awhere
A: Annotation<C>,
impl<C, A> Annotation<Rc<C>> for Awhere
A: Annotation<C>,
sourcefn from_child(t: &Rc<C>) -> A
fn from_child(t: &Rc<C>) -> A
Compute the annotation from the child.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more