pub struct NaiveBoard { /* private fields */ }
Trait Implementations§
Source§impl Board for NaiveBoard
impl Board for NaiveBoard
fn new(board_size: usize) -> NaiveBoard
fn at(&self, point: &Point) -> Result<PieceIter, &str>
fn at_reset(&mut self, point: &Point) -> Result<PieceIter, &str>
fn size(&self) -> usize
fn place_piece(&mut self, point: &Point, piece: Piece) -> Result<(), String>
fn add_piece(&mut self, point: &Point, piece: Piece) -> Result<(), String>
fn count(&self) -> PieceCount
fn follow( &self, starts: &mut VecDeque<Point>, player: Player, ) -> BTreeSet<Point>
fn full(&self) -> bool
fn squares(&self) -> Vec<PieceIter>
Source§impl Clone for NaiveBoard
impl Clone for NaiveBoard
Source§fn clone(&self) -> NaiveBoard
fn clone(&self) -> NaiveBoard
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NaiveBoard
impl Debug for NaiveBoard
Source§impl Decodable for NaiveBoard
impl Decodable for NaiveBoard
Source§impl Display for NaiveBoard
impl Display for NaiveBoard
Source§impl Encodable for NaiveBoard
impl Encodable for NaiveBoard
Auto Trait Implementations§
impl Freeze for NaiveBoard
impl RefUnwindSafe for NaiveBoard
impl Send for NaiveBoard
impl Sync for NaiveBoard
impl Unpin for NaiveBoard
impl UnwindSafe for NaiveBoard
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)