Struct nstack::annotation::Cardinality
source · [−]pub struct Cardinality(_);
Expand description
The cardinality of the NStack.
Methods from Deref<Target = u64>
Trait Implementations
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 Clone for Cardinality
impl Clone for Cardinality
sourcefn clone(&self) -> Cardinality
fn clone(&self) -> Cardinality
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Cardinality
impl Debug for Cardinality
sourceimpl Default for Cardinality
impl Default for Cardinality
sourcefn default() -> Cardinality
fn default() -> Cardinality
Returns the “default value” for a type. Read more
sourceimpl Deref for Cardinality
impl Deref for Cardinality
sourceimpl From<u64> for Cardinality
impl From<u64> for Cardinality
sourceimpl Ord for Cardinality
impl Ord for Cardinality
sourcefn cmp(&self, other: &Cardinality) -> Ordering
fn cmp(&self, other: &Cardinality) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Cardinality> for Cardinality
impl PartialEq<Cardinality> for Cardinality
sourcefn eq(&self, other: &Cardinality) -> bool
fn eq(&self, other: &Cardinality) -> bool
sourceimpl PartialOrd<Cardinality> for Cardinality
impl PartialOrd<Cardinality> for Cardinality
sourcefn partial_cmp(&self, other: &Cardinality) -> Option<Ordering>
fn partial_cmp(&self, other: &Cardinality) -> 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 Copy for Cardinality
impl Eq for Cardinality
impl StructuralEq for Cardinality
impl StructuralPartialEq for Cardinality
Auto Trait Implementations
impl RefUnwindSafe for Cardinality
impl Send for Cardinality
impl Sync for Cardinality
impl Unpin for Cardinality
impl UnwindSafe for Cardinality
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