pub struct Board {
pub width: u16,
pub height: u16,
pub cells: Vec<Vec<PieceColor>>,
}Expand description
The board is represented as a 2D array of u8, where PieceColor::Empty is an empty cell and any other value is a piece.
Fields§
§width: u16§height: u16§cells: Vec<Vec<PieceColor>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Board
impl RefUnwindSafe for Board
impl Send for Board
impl Sync for Board
impl Unpin for Board
impl UnwindSafe for Board
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more