Variants
Leaf([Option<T>; 4])
Node([Option<Annotated<Box<NStack<T, A>>, A>>; 4])
Implementations
sourceimpl<T, A> NStack<T, A>where
A: Annotation<Self> + Borrow<Cardinality>,
impl<T, A> NStack<T, A>where
A: Annotation<Self> + Borrow<Cardinality>,
sourceimpl<T, A> NStack<T, A>where
A: Annotation<NStack<T, A>>,
impl<T, A> NStack<T, A>where
A: Annotation<NStack<T, A>>,
sourcepub fn max_key<K>(&self) -> Option<Branch<'_, Self, A>>where
T: Keyed<K>,
A: Borrow<MaxKey<K>>,
K: Clone + PartialOrd,
pub fn max_key<K>(&self) -> Option<Branch<'_, Self, A>>where
T: Keyed<K>,
A: Borrow<MaxKey<K>>,
K: Clone + PartialOrd,
Construct a Branch
pointing to the element with the largest key
sourcepub fn max_key_mut<K>(&mut self) -> Option<BranchMut<'_, Self, A>>where
T: Keyed<K>,
A: Borrow<MaxKey<K>>,
K: Clone + PartialOrd,
pub fn max_key_mut<K>(&mut self) -> Option<BranchMut<'_, Self, A>>where
T: Keyed<K>,
A: Borrow<MaxKey<K>>,
K: Clone + PartialOrd,
Construct a BranchMut
pointing to the element with the largest key
Trait Implementations
sourceimpl<T, A> Annotation<NStack<T, A>> for ()
impl<T, A> Annotation<NStack<T, A>> for ()
sourcefn from_child(_: &NStack<T, A>) -> Self
fn from_child(_: &NStack<T, A>) -> Self
Compute the annotation from the child.
sourceimpl<T> Annotation<NStack<T, Cardinality>> for Cardinality
impl<T> Annotation<NStack<T, Cardinality>> for Cardinality
sourcefn from_child(stack: &NStack<T, Cardinality>) -> Self
fn from_child(stack: &NStack<T, Cardinality>) -> Self
Compute the annotation from the child.
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<T, A> Clone for NStack<T, A>where
T: Clone,
A: Annotation<Self>,
impl<T, A> Clone for NStack<T, A>where
T: Clone,
A: Annotation<Self>,
sourceimpl<T, A> Compound<A> for NStack<T, A>
impl<T, A> Compound<A> for NStack<T, A>
impl<T, A> MutableLeaves for NStack<T, A>
Auto Trait Implementations
impl<T, A> !RefUnwindSafe for NStack<T, A>
impl<T, A> Send for NStack<T, A>where
A: Send,
T: Send,
impl<T, A> !Sync for NStack<T, A>
impl<T, A> Unpin for NStack<T, A>where
A: Unpin,
T: Unpin,
impl<T, A> UnwindSafe for NStack<T, A>where
A: UnwindSafe,
T: 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