Trait discrete::ToPos
[−]
[src]
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
Implementors
impl ToPos<usize, Vec<usize>> for PowerSet<Data>
impl<T, U, V> ToPos<U, Vec<V>> for PowerSet<Of<T>> where
T: Construct + Count<U> + ToPos<U, V> + Zero<U, V>,impl ToPos<Vec<usize>, Vec<usize>> for DimensionN<Data>
impl<T, U, V> ToPos<Vec<U>, Vec<V>> for DimensionN<Of<T>> where
T: Construct + Count<U> + ToPos<U, V>,impl ToPos<usize, usize> for Dimension<Data>
impl<T, U, V> ToPos<U, V> for Dimension<Of<T>> where
T: Construct + ToPos<U, V>,impl ToPos<usize, (usize, usize)> for Pair<Data>
impl<T, U, V> ToPos<U, (V, V)> for Pair<Of<T>> where
T: Construct + Count<U> + ToPos<U, V>,impl ToPos<usize, (usize, usize)> for EqPair<Data>
impl<T, U, V> ToPos<U, (V, V)> for EqPair<Of<T>> where
T: Construct + Count<U> + ToPos<U, V>,impl ToPos<usize, (usize, usize)> for NeqPair<Data>
impl<T, U, V> ToPos<U, (V, V)> for NeqPair<Of<T>> where
T: Construct + Count<U> + ToPos<U, V>,impl ToPos<usize, Vec<usize>> for Permutation<Data>
impl<T, U, V> ToPos<U, Vec<V>> for Permutation<Of<T>> where
T: Construct + Count<U> + ToPos<U, V>,
V: Default,impl ToPos<Vec<usize>, (Vec<usize>, usize, usize)> for Context<Data>
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>,impl ToPos<Vec<usize>, (Vec<usize>, usize, usize)> for DirectedContext<Data>
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,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>,