Struct shakmaty::fen::Fen
[−]
[src]
pub struct Fen { pub board: Board, pub pockets: Option<Pockets>, pub turn: Color, pub castling_rights: Bitboard, pub ep_square: Option<Square>, pub remaining_checks: Option<RemainingChecks>, pub halfmove_clock: u32, pub fullmoves: u32, }
A parsed FEN.
Fields
board: Board
pockets: Option<Pockets>
turn: Color
castling_rights: Bitboard
ep_square: Option<Square>
remaining_checks: Option<RemainingChecks>
halfmove_clock: u32
fullmoves: u32
Methods
impl Fen
[src]
Trait Implementations
impl Clone for Fen
[src]
fn clone(&self) -> Fen
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 Eq for Fen
[src]
impl PartialEq for Fen
[src]
fn eq(&self, __arg_0: &Fen) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Fen) -> bool
This method tests for !=
.
impl Debug for Fen
[src]
impl Setup for Fen
[src]
fn board(&self) -> &Board
fn pockets(&self) -> Option<&Pockets>
fn turn(&self) -> Color
fn castling_rights(&self) -> Bitboard
fn ep_square(&self) -> Option<Square>
fn remaining_checks(&self) -> Option<&RemainingChecks>
fn halfmove_clock(&self) -> u32
fn fullmoves(&self) -> u32
fn us(&self) -> Bitboard
fn our(&self, role: Role) -> Bitboard
fn them(&self) -> Bitboard
fn their(&self, role: Role) -> Bitboard
impl Default for Fen
[src]
impl FromStr for Fen
[src]
type Err = FenError
The associated error which can be returned from parsing.
fn from_str(fen: &str) -> Result<Fen, FenError>
Parses a string s
to return a value of this type. Read more