trait CoordinateExtensions: Sized {
// Required methods
fn manhattan_distance(&self, other: &Self) -> u32;
fn step(&self, delta: (i8, i8), bounds: &(u8, u8)) -> Option<Self>;
}
Required Methods§
fn manhattan_distance(&self, other: &Self) -> u32
fn step(&self, delta: (i8, i8), bounds: &(u8, u8)) -> Option<Self>
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl CoordinateExtensions for (u8, u8)
impl CoordinateExtensions for (u8, u8)
source§fn manhattan_distance(&self, other: &Self) -> u32
fn manhattan_distance(&self, other: &Self) -> u32
The distance between two points in memory space using manhattan distance