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

pub struct FenOpts { /* fields omitted */ }

FEN formatting options.

Methods

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]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for FenOpts[src]

impl PartialEq<FenOpts> for FenOpts[src]

impl Eq for FenOpts[src]

impl Debug for FenOpts[src]

impl Hash for FenOpts[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Sync for FenOpts

impl Send for FenOpts

impl Unpin for FenOpts

impl RefUnwindSafe for FenOpts

impl UnwindSafe for FenOpts

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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