Struct discrete::DimensionN [] [src]

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

Dimension is a list of numbers, position is a list of numbers.

Trait Implementations

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

Constructs a new Self.

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

Counts the size of space given the dimensions.

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

Counts the size of space given the dimensions.

impl Zero<Vec<usize>, Vec<usize>> for DimensionN<Data>
[src]

Creates a default element.

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

Creates a default element.

impl ToIndex<Vec<usize>, Vec<usize>> for DimensionN<Data>
[src]

Converts position to index.

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

Converts position to index.

impl ToPos<Vec<usize>, Vec<usize>> for DimensionN<Data>
[src]

Converts index to position.

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

Converts index to position.