[][src]Trait gridsim::TakeMoveNeighbors

pub trait TakeMoveNeighbors<Idx, MoveNeighbors> {
    unsafe fn take_move_neighbors(&self, ix: Idx) -> MoveNeighbors;
}

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.

Loading content...

Implementors

impl<'a, S, M> TakeMoveNeighbors<usize, MooreNeighbors<M>> for SquareGrid<'a, S> where
    S: Sim<'a, Move = M, MoveNeighbors = 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]

impl<'a, S: Sim<'a>> TakeMoveNeighbors<usize, ()> for SquareGrid<'a, S>[src]

Loading content...