Enum gridsim::neumann::Direction [−][src]
pub enum Direction { Right, UpRight, Up, UpLeft, Left, DownLeft, Down, DownRight, }
Variants
Right
UpRight
Up
UpLeft
Left
DownLeft
Down
DownRight
Methods
impl Direction
[src]
impl Direction
ⓘImportant traits for DirectionEnumIteratorpub fn iter_variants() -> DirectionEnumIterator
[src]
ⓘImportant traits for DirectionEnumIterator
pub fn iter_variants() -> DirectionEnumIterator
impl Direction
[src]
impl Direction
Trait Implementations
impl Copy for Direction
[src]
impl Copy for Direction
impl Clone for Direction
[src]
impl Clone for Direction
fn clone(&self) -> Direction
[src]
fn clone(&self) -> Direction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Direction
[src]
impl Debug for Direction
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Direction
[src]
impl PartialEq for Direction
fn eq(&self, other: &Direction) -> bool
[src]
fn eq(&self, other: &Direction) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Direction
[src]
impl Eq for Direction
impl Direction for Direction
[src]
impl Direction for Direction
type Directions = DirectionEnumIterator
fn inv(self) -> Direction
[src]
fn inv(self) -> Direction
fn directions() -> Self::Directions
[src]
fn directions() -> Self::Directions
impl<T> Index<Direction> for Neighbors<T>
[src]
impl<T> Index<Direction> for Neighbors<T>
type Output = T
The returned type after indexing.
fn index(&self, ix: Direction) -> &T
[src]
fn index(&self, ix: Direction) -> &T
Performs the indexing (container[index]
) operation.
impl<T> IndexMut<Direction> for Neighbors<T>
[src]
impl<T> IndexMut<Direction> for Neighbors<T>
fn index_mut(&mut self, ix: Direction) -> &mut T
[src]
fn index_mut(&mut self, ix: Direction) -> &mut T
Performs the mutable indexing (container[index]
) operation.
impl<'a, S, M> TakeMoveDirection<usize, Direction, M> for SquareGrid<'a, S> where
S: Sim<'a, Move = M, MoveNeighbors = Neighbors<M>>,
[src]
impl<'a, S, M> TakeMoveDirection<usize, Direction, M> for SquareGrid<'a, S> where
S: Sim<'a, Move = M, MoveNeighbors = Neighbors<M>>,
unsafe fn take_move_direction(&self, ix: usize, dir: Direction) -> M
[src]
unsafe fn take_move_direction(&self, ix: usize, dir: Direction) -> M
This should be called exactly once for every index and direction. Read more