Struct tak::board_naive::NaiveBoard
[−]
[src]
pub struct NaiveBoard { /* fields omitted */ }
Trait Implementations
impl Clone for NaiveBoard
[src]
fn clone(&self) -> NaiveBoard
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for NaiveBoard
[src]
impl Decodable for NaiveBoard
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<NaiveBoard, __D::Error>
Deserialize a value using a Decoder
.
impl Encodable for NaiveBoard
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.
impl Board for NaiveBoard
[src]
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>
&self,
starts: &mut VecDeque<Point>,
player: Player
) -> BTreeSet<Point>
fn full(&self) -> bool
fn squares(&self) -> Vec<PieceIter>
impl FromStr for NaiveBoard
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more