[−][src]Trait gridsim::TakeMoveNeighbors
Required methods
unsafe fn take_move_neighbors(&self, ix: Idx) -> MoveNeighbors
[src]
Safety
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, M> TakeMoveNeighbors<usize, MooreNeighbors<M>> for SquareGrid<'a, S> where
S: Sim<'a, Move = M, MoveNeighbors = MooreNeighbors<M>>,
[src]
S: Sim<'a, Move = M, MoveNeighbors = MooreNeighbors<M>>,
unsafe fn take_move_neighbors(&self, ix: usize) -> MooreNeighbors<M>
[src]
impl<'a, S, M> TakeMoveNeighbors<usize, NeumannNeighbors<M>> for SquareGrid<'a, S> where
S: Sim<'a, Move = M, MoveNeighbors = NeumannNeighbors<M>>,
[src]
S: Sim<'a, Move = M, MoveNeighbors = NeumannNeighbors<M>>,