pub trait Space<N>: Construct + Sized {
type Dim;
type Pos;
// Required methods
fn count(&self, dim: &Self::Dim) -> N;
fn zero(&self, dim: &Self::Dim) -> Self::Pos;
fn to_index(&self, dim: &Self::Dim, pos: &Self::Pos) -> N;
fn to_pos(&self, dim: &Self::Dim, index: N, pos: &mut Self::Pos);
}
Expand description
Implemented by discrete spaces.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.