Cardinality

Trait Cardinality 

Source
pub trait Cardinality {
    type Size: Unsigned + Integer;

    // Required method
    fn size(&self) -> Self::Size;
}

Required Associated Types§

Required Methods§

Source

fn size(&self) -> Self::Size

Implementations on Foreign Types§

Source§

impl Cardinality for i8

Source§

type Size = u8

Source§

fn size(&self) -> u8

Source§

impl Cardinality for i16

Source§

type Size = u16

Source§

fn size(&self) -> u16

Source§

impl Cardinality for i32

Source§

type Size = u32

Source§

fn size(&self) -> u32

Source§

impl Cardinality for i64

Source§

type Size = u64

Source§

fn size(&self) -> u64

Source§

impl Cardinality for isize

Source§

impl Cardinality for u8

Source§

type Size = u8

Source§

fn size(&self) -> u8

Source§

impl Cardinality for u16

Source§

type Size = u16

Source§

fn size(&self) -> u16

Source§

impl Cardinality for u32

Source§

type Size = u32

Source§

fn size(&self) -> u32

Source§

impl Cardinality for u64

Source§

type Size = u64

Source§

fn size(&self) -> u64

Source§

impl Cardinality for usize

Implementors§

Source§

impl<Bound> Cardinality for Interval<Bound>
where Bound: Width + Num,

IsSingleton and IsEmpty are defined automatically in gcollections.

Source§

type Size = <Bound as Width>::Output

Source§

impl<Bound: Width + Num> Cardinality for IntervalSet<Bound>

IsSingleton and IsEmpty are defined automatically in gcollections.

Source§

type Size = <Bound as Width>::Output

Source§

impl<S, OrdPush, OrdPop> Cardinality for Queue<S, OrdPush, OrdPop>
where S: Cardinality,

Source§

impl<S, Ordering> Cardinality for Stack<S, Ordering>
where S: Cardinality,

Source§

impl<T> Cardinality for Vector<T>

Source§

impl<T> Cardinality for VectorDeque<T>

Source§

impl<T> Cardinality for Optional<T>