Struct advtools::grid::Grid [−][src]
pub struct Grid<T> { /* fields omitted */ }
Implementations
pub fn positions<N>(&self) -> impl Iterator<Item = Pos<N>> + 'static where
N: Integer + Copy + FromPrimitive + ToPrimitive,
pub fn neighbors<N>(
&self,
pos: Pos<N>
) -> impl Iterator<Item = Pos<N>> + 'static where
N: Integer + Copy + FromPrimitive + ToPrimitive + 'static,
pub fn neighbors_diag<N>(
&self,
pos: Pos<N>
) -> impl Iterator<Item = Pos<N>> + 'static where
N: Integer + Copy + FromPrimitive + ToPrimitive + 'static,
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Grid<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Grid<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more