pub struct FenOpts { /* private fields */ }
Expand description
FEN formatting options.
Implementations
sourceimpl FenOpts
impl FenOpts
sourcepub fn promoted(&mut self, promoted: bool) -> &mut FenOpts
pub fn promoted(&mut self, promoted: bool) -> &mut FenOpts
Decide if promoted pieces should be tracked, e.g. Q~
.
sourcepub fn shredder(&mut self, shredder: bool) -> &mut FenOpts
pub fn shredder(&mut self, shredder: bool) -> &mut FenOpts
Decide if castling rights should be displayed in Shredder format,
e.g. HAha
instead of KQkq
.
sourcepub fn board_fen(&self, board: &Board) -> String
pub fn board_fen(&self, board: &Board) -> String
Create a board FEN such as
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR
.
Trait Implementations
impl Eq for FenOpts
impl StructuralEq for FenOpts
impl StructuralPartialEq for FenOpts
Auto Trait Implementations
impl RefUnwindSafe for FenOpts
impl Send for FenOpts
impl Sync for FenOpts
impl Unpin for FenOpts
impl UnwindSafe for FenOpts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more