[][src]Trait discrete::Count

pub trait Count<T> {
    fn count(&self, dim: &T) -> usize;
}

Implemented by spaces that can count the number of objects.

Required methods

fn count(&self, dim: &T) -> usize

Counts the size of space given the dimensions.

Loading content...

Implementations on Foreign Types

impl<T, U, V, W> Count<(V, W)> for (T, U) where
    T: Construct + Count<V>,
    U: Construct + Count<W>, 
[src]

Loading content...

Implementors

impl Count<usize> for Dimension<Data>[src]

impl Count<usize> for EqPair<Data>[src]

impl Count<usize> for NeqPair<Data>[src]

impl Count<usize> for Pair<Data>[src]

impl Count<usize> for Permutation<Data>[src]

impl Count<usize> for PowerSet<Data>[src]

impl Count<Vec<usize>> for Context<Data>[src]

impl Count<Vec<usize>> for DimensionN<Data>[src]

impl Count<Vec<usize>> for DirectedContext<Data>[src]

impl<T, U> Count<Vec<U>> for Context<Of<T>> where
    T: Construct + Count<U>, 
[src]

impl<T, U> Count<Vec<U>> for DimensionN<Of<T>> where
    T: Construct + Count<U>, 
[src]

impl<T, U> Count<Vec<U>> for DirectedContext<Of<T>> where
    T: Construct + Count<U>, 
[src]

impl<T, U> Count<U> for Dimension<Of<T>> where
    T: Construct + Count<U>, 
[src]

impl<T, U> Count<U> for EqPair<Of<T>> where
    T: Construct + Count<U>, 
[src]

impl<T, U> Count<U> for NeqPair<Of<T>> where
    T: Construct + Count<U>, 
[src]

impl<T, U> Count<U> for Pair<Of<T>> where
    T: Construct + Count<U>, 
[src]

impl<T, U> Count<U> for Permutation<Of<T>> where
    T: Construct + Count<U>, 
[src]

impl<T, U> Count<U> for PowerSet<Of<T>> where
    T: Construct + Count<U>, 
[src]

impl<T, U, V, W> Count<(V, W)> for Either<T, U> where
    T: Construct + Count<V>,
    U: Construct + Count<W>, 
[src]

Loading content...