discrete 0.2.1

Combinatorial phantom types for discrete mathematics
Documentation
1
2
3
4
5
/// Implemented for spaces which can convert an index to position type.
pub trait ToPos<T, U> {
    /// Converts index to position.
    fn to_pos(&self, dim: &T, index: usize, pos: &mut U);
}