Struct discrete::Permutation [] [src]

pub struct Permutation<T>(_);

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

Trait Implementations

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

Constructs a new Self.

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

Counts the size of space given the dimensions.

impl<T, U> Count<(usize, U)> for Permutation<Subspace<T>> where T: Construct + Count<U>
[src]

Counts the size of space given the dimensions.

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

Counts the size of space given the dimensions.

impl<'a> ToIndex<usize&'a [usize]> for Permutation<Data>
[src]

Converts position to index.

impl<'a, T, U: Copy, V> ToIndex<(usize, U)(&'a [usize], V)> for Permutation<Subspace<T>> where T: Construct + Count<U> + ToIndex<U, V>
[src]

Converts position to index.

impl<'a, T, U: Copy, V: Copy> ToIndex<U, &'a [V]> for Permutation<Of<T>> where T: Construct + ToIndex<U, V> + Count<U>
[src]

Converts position to index.

impl ToPos<usizeVec<usize>> for Permutation<Data>
[src]

Converts index to position.

impl<T, U: Copy, V> ToPos<(usize, U)(Vec<usize>, V)> for Permutation<Subspace<T>> where T: Construct + Count<U> + ToPos<U, V>
[src]

Converts index to position.

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

Converts index to position.