Enum gridsim::moore::Direction[][src]

pub enum Direction {
    Right,
    Up,
    Left,
    Down,
}

Variants

Methods

impl Direction
[src]

impl Direction
[src]

Trait Implementations

impl Copy for Direction
[src]

impl Clone for Direction
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Direction
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Direction
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Direction
[src]

impl Direction for Direction
[src]

impl<T> Index<Direction> for Neighbors<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T> IndexMut<Direction> for Neighbors<T>
[src]

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]

This should be called exactly once for every index and direction. Read more

Auto Trait Implementations

impl Send for Direction

impl Sync for Direction