Enum roguelike::Dir
[−]
[src]
pub enum Dir {
Up,
Right,
Down,
Left,
}Dir is an enum representing directions one could make a move in
Variants
UpRightDownLeftMethods
impl Dir[src]
fn from_u32(int: &u32) -> Dir
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]
fn eq(&self, __arg_0: &Dir) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for Dir[src]
impl Hash for Dir[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Clone for Dir[src]
fn clone(&self) -> Dir
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more