Enum roguelike::Dir [] [src]

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

Dir is an enum representing directions one could make a move in

Variants

Methods

impl Dir
[src]

The REnforce library generates random u32's and needs to go from that to an action, in this case a Dir

Trait Implementations

impl PartialEq for Dir
[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 Dir
[src]

impl Hash for Dir
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Dir
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Dir
[src]

Formats the value using the given formatter.