Struct chessground::Pos [] [src]

pub struct Pos { /* fields omitted */ }

A position configuration.

  • Piece positions
  • Legal move hints
  • Check hint
  • Last move hint

Methods

impl Pos
[src]

[src]

Create a new position configuration.

[src]

Create a position configuration from a board, without any other hints.

[src]

Set the hint for the last move, so that it can be highlighted on the board.

[src]

[src]

Set the check hint.

[src]

[src]

Set the legal move hints.

[src]

Trait Implementations

impl Debug for Pos
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Pos
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Pos
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Pos

impl Sync for Pos