Trait discrete::ToPos

source ·
pub trait ToPos<T, U, N> {
    // Required method
    fn to_pos(&self, dim: &T, index: N, pos: &mut U);
}
Expand description

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

Required Methods§

source

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

Converts index to position.

Implementors§

source§

impl<D, P, T: Space<usize, Dim = D, Pos = P>> ToPos<D, P, usize> for T

source§

impl<D, P, T: Space<BigUint, Dim = D, Pos = P>> ToPos<D, P, BigUint> for T