Struct discrete::Dimension [] [src]

pub struct Dimension<T = Data>(_);

Dimension is natural number, position is the same as index.

Trait Implementations

impl<T> Construct for Dimension<T>
[src]

Constructs a new Self.

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

Counts the size of space given the dimensions.

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

Counts the size of space given the dimensions.

impl Zero<usize, usize> for Dimension<Data>
[src]

Creates a default element.

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

Creates a default element.

impl ToIndex<usize, usize> for Dimension<Data>
[src]

Converts position to index.

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

Converts position to index.

impl ToPos<usize, usize> for Dimension<Data>
[src]

Converts index to position.

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

Converts index to position.