Enum lib2048::Display [−][src]
pub enum Display { Create { pos: TilePos, value: u8, }, CombineInto { a: TilePos, b: TilePos, target: TilePos, }, Move { from: TilePos, to: TilePos, }, ScoreAdd { add: usize, }, GameOver { score: usize, }, }
Variants
Create
Fields of Create
pos: TilePos | |
value: u8 |
CombineInto
Fields of CombineInto
a: TilePos | |
b: TilePos | |
target: TilePos |
Move
Fields of Move
from: TilePos | |
to: TilePos |
ScoreAdd
Fields of ScoreAdd
add: usize |
GameOver
Fields of GameOver
score: usize |
Trait Implementations
impl Copy for Display
[src]
impl Copy for Display
impl Clone for Display
[src]
impl Clone for Display
fn clone(&self) -> Display
[src]
fn clone(&self) -> Display
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 Display
[src]
impl Debug for Display