Struct chess_pgn_parser::GameMove [] [src]

pub struct GameMove {
    pub number: Option<MoveNumber>,
    pub move_: MarkedMove,
    pub nag: Option<NAG>,
    pub comment: Option<String>,
    pub variations: Vec<MoveSequence>,
}

Fields

number: Option<MoveNumber> move_: MarkedMove nag: Option<NAG> comment: Option<String> variations: Vec<MoveSequence>

Methods

impl GameMove
[src]

fn nag(&self, value: NAG) -> GameMove

fn comment(&self, value: String) -> GameMove

fn with_variations(&self, variations: Vec<MoveSequence>) -> GameMove

Trait Implementations

impl Clone for GameMove
[src]

fn clone(&self) -> GameMove

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for GameMove
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for GameMove
[src]

impl PartialEq for GameMove
[src]

fn eq(&self, __arg_0: &GameMove) -> bool

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

fn ne(&self, __arg_0: &GameMove) -> bool

This method tests for !=.