Enum pgn_reader::San [] [src]

pub enum San {
    Normal {
        role: Role,
        file: Option<i8>,
        rank: Option<i8>,
        capture: bool,
        to: Square,
        promotion: Option<Role>,
    },
    Castle(CastlingSide),
    Put {
        role: Role,
        to: Square,
    },
    Null,
}

A move in Standard Algebraic Notation.

Variants

Fields of Normal

Fields of Put

Methods

impl San
[src]

[src]

Parse SAN.

[src]

Tries to convert the San to a legal move in the context of a position.

Trait Implementations

impl Clone for San
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<San> for San
[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 FromStr for San
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl Debug for San
[src]

[src]

Formats the value using the given formatter.

impl Eq for San
[src]

impl Display for San
[src]

[src]

Formats the value using the given formatter. Read more