pub trait MapPosition<const DIMS: usize>:
Eq
+ Hash
+ Sized
+ Copy
+ Clone
+ Borrow<Self> {
type Key: PositionKey;
// Required methods
fn get_dims(&self) -> [Self::Key; DIMS];
fn from_dims(dims: [Self::Key; DIMS]) -> Self;
fn adjacents<BS: Borrow<Self>, AG: AdjacencyGenerator<2, Input = BS>>(
borrowed: BS,
) -> AG::Output;
}Required Associated Types§
type Key: PositionKey
Required Methods§
fn get_dims(&self) -> [Self::Key; DIMS]
fn from_dims(dims: [Self::Key; DIMS]) -> Self
fn adjacents<BS: Borrow<Self>, AG: AdjacencyGenerator<2, Input = BS>>( borrowed: BS, ) -> AG::Output
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.