[][src]Struct shakmaty::fen::FenOpts

pub struct FenOpts { /* fields omitted */ }

FEN formatting options.

Implementations

impl FenOpts[src]

pub fn new() -> FenOpts[src]

Standard X-FEN.

pub fn promoted(&mut self, promoted: bool) -> &mut FenOpts[src]

Decide if promoted pieces should be tracked, e.g. Q~.

pub fn shredder(&mut self, shredder: bool) -> &mut FenOpts[src]

Decide if castling rights should be displayed in Shredder format, e.g. HAha instead of KQkq.

pub fn scid(&mut self, scid: bool) -> &mut FenOpts[src]

Decide if Crazyhouse pockets and remaining check counters should use Scid-style, e.g. /q instead of [q] and +0+0 instead of 3+3.

pub fn board_fen(&self, board: &Board) -> String[src]

Create a board FEN such as rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR.

pub fn epd(&self, setup: &dyn Setup) -> String[src]

Create an EPD such as rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -.

pub fn fen(&self, setup: &dyn Setup) -> String[src]

Create a FEN such as rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1.

Trait Implementations

impl Clone for FenOpts[src]

impl Debug for FenOpts[src]

impl Default for FenOpts[src]

impl Eq for FenOpts[src]

impl Hash for FenOpts[src]

impl PartialEq<FenOpts> for FenOpts[src]

impl StructuralEq for FenOpts[src]

impl StructuralPartialEq for FenOpts[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.