[][src]Struct pgn4::BasicMove

pub struct BasicMove {
    pub piece: char,
    pub from: Position,
    pub captured: Option<char>,
    pub to: Position,
    pub promotion: Option<char>,
    pub checks: usize,
    pub mates: usize,
}

Moves containing to and from positions

If the piece moved is a pawn, piece = 'P'. Similarly, is a pawn is captured, captured = Some('P'). checks should be less than 4 and mates should be less than 3 (mating three players simultaneously doesn't get notated).

Fields

piece: charfrom: Positioncaptured: Option<char>to: Positionpromotion: Option<char>checks: usizemates: usize

Trait Implementations

impl Clone for BasicMove[src]

impl Debug for BasicMove[src]

impl Display for BasicMove[src]

impl FromStr for BasicMove[src]

type Err = MoveError

The associated error which can be returned from parsing.

impl PartialEq<BasicMove> for BasicMove[src]

impl StructuralPartialEq for BasicMove[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.