Enum tetrs::block::Id [] [src]

pub enum Id {
    I,
    T,
    L,
    J,
    S,
    Z,
    O,
    None,
}

The identifier for a particular Block.

Variants

I
T
L
J
S
Z
O
None

Methods

impl Id
[src]

fn variants() -> &'static [Id]

Returns all Id variants known.

This does not return the None variant.

Trait Implementations

impl CLike for Id
[src]

fn to_usize(&self) -> usize

fn from_usize(v: usize) -> Id

Derived Implementations

impl Eq for Id
[src]

impl PartialEq for Id
[src]

fn eq(&self, __arg_0: &Id) -> bool

fn ne(&self, other: &Rhs) -> bool
1.0.0

impl Copy for Id
[src]

impl Debug for Id
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Id
[src]

fn clone(&self) -> Id

fn clone_from(&mut self, source: &Self)
1.0.0

impl Hash for Id
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0