[][src]Trait discrete::ToPos

pub trait ToPos<T, U> {
    fn to_pos(&self, dim: &T, index: usize, pos: &mut U);
}

Implemented for spaces which can convert an index to position type.

Required methods

fn to_pos(&self, dim: &T, index: usize, pos: &mut U)

Converts index to position.

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

impl ToPos<usize, (usize, usize)> for EqPair<Data>[src]

impl ToPos<usize, (usize, usize)> for NeqPair<Data>[src]

impl ToPos<usize, (usize, usize)> for Pair<Data>[src]

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

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

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

impl ToPos<Vec<usize>, (Vec<usize>, usize, usize)> for Context<Data>[src]

impl ToPos<Vec<usize>, (Vec<usize>, usize, usize)> for DirectedContext<Data>[src]

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

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

impl<T, U, V> ToPos<Vec<U>, (Vec<V>, usize, V)> for DirectedContext<Of<T>> where
    T: Construct + Count<U> + ToPos<U, V> + Zero<U, V>,
    V: Clone
[src]

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

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

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

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

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

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

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

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

Loading content...