Trait gridsim::TakeMoveNeighbors [−][src]
pub trait TakeMoveNeighbors<Idx, MoveNeighbors> { unsafe fn take_move_neighbors(&self, _: Idx) -> MoveNeighbors; }
Required Methods
unsafe fn take_move_neighbors(&self, _: Idx) -> MoveNeighbors
This should be called exactly once for every index, making it unsafe.
This is marked unsafe to ensure people read the documentation due to the above requirement.
Implementors
impl<'a, S: Sim<'a>> TakeMoveNeighbors<usize, ()> for SquareGrid<'a, S>
impl<'a, S, M> TakeMoveNeighbors<usize, Neighbors<M>> for SquareGrid<'a, S> where
S: Sim<'a, Move = M, MoveNeighbors = Neighbors<M>>,impl<'a, S, M> TakeMoveNeighbors<usize, Neighbors<M>> for SquareGrid<'a, S> where
S: Sim<'a, Move = M, MoveNeighbors = Neighbors<M>>,