Struct hexe_core::fen::Fen [] [src]

pub struct Fen {
    pub pieces: PieceMap,
    pub color: Color,
    pub castling: Rights,
    pub en_passant: Option<Square>,
    pub halfmoves: u32,
    pub fullmoves: u32,
}

A type that can be used to parse Forsyth–Edwards Notation (FEN).

Fields

The pieces on the board.

The active color.

The castling rights.

The en passant target square.

The number of halfmoves since the last capture or pawn advance.

The fullmove number.

Methods

impl Fen
[src]

STARTING: Fen = Fen{pieces: <PieceMap>::STANDARD,
    color: Color::White,
    castling: <Rights>::FULL,
    en_passant: None,
    halfmoves: 0,
    fullmoves: 1,}

FEN for the starting position. It is equivalent to:

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1

EMPTY: Fen = Fen{pieces: <PieceMap>::EMPTY,
    color: Color::White,
    castling: <Rights>::EMPTY,
    en_passant: None,
    halfmoves: 0,
    fullmoves: 1,}

FEN for the empty position. It is equivalent to:

8/8/8/8/8/8/8/8 w - - 0 1

Trait Implementations

impl Clone for Fen
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Fen
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Fen
[src]

impl Display for Fen
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Fen

impl Sync for Fen