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