Struct lib2048::Board [−][src]
pub struct Board { /* fields omitted */ }
Methods
impl Board
[src]
impl Board
pub fn new(
size: impl Into<TilePos>
) -> Board
[src]
pub fn new(
size: impl Into<TilePos>
) -> Board
pub fn start_game(&mut self) -> Vec<Display>
[src]
pub fn start_game(&mut self) -> Vec<Display>
pub fn control_and_generate(&mut self, ctrl: Control) -> Vec<Display>
[src]
pub fn control_and_generate(&mut self, ctrl: Control) -> Vec<Display>
Trait Implementations
impl Index<usize> for Board
[src]
impl Index<usize> for Board
type Output = u8
The returned type after indexing.
fn index(&self, index: usize) -> &u8
[src]
fn index(&self, index: usize) -> &u8
Performs the indexing (container[index]
) operation.
impl IndexMut<usize> for Board
[src]
impl IndexMut<usize> for Board
fn index_mut(&mut self, index: usize) -> &mut u8
[src]
fn index_mut(&mut self, index: usize) -> &mut u8
Performs the mutable indexing (container[index]
) operation.
impl Debug for Board
[src]
impl Debug for Board
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Board
[src]
impl Eq for Board
impl PartialEq for Board
[src]
impl PartialEq for Board