Struct pgn_reader::SanPlus[][src]

pub struct SanPlus {
    pub san: San,
    pub suffix: Option<Suffix>,
}

A San and possible check and checkmate suffixes.

Fields

san: Sansuffix: Option<Suffix>

Implementations

impl SanPlus[src]

pub fn from_ascii(san: &[u8]) -> Result<SanPlus, ParseSanError>[src]

Parses a SAN and possible check and checkmate suffix.

Errors

Returns ParseSanError if san is not syntactically valid.

pub fn from_move_and_play_unchecked<P>(pos: &mut P, m: &Move) -> SanPlus where
    P: Position
[src]

Converts a move to Standard Algebraic Notation including possible check and checkmate suffixes. Also plays the move.

It is the callers responsibility to ensure the move is legal.

Panics

Illegal moves can corrupt the state of the position and may (or may not) panic or cause panics on future calls.

pub fn from_move<P>(pos: P, m: &Move) -> SanPlus where
    P: Position
[src]

Trait Implementations

impl Clone for SanPlus[src]

impl Debug for SanPlus[src]

impl Display for SanPlus[src]

impl Eq for SanPlus[src]

impl FromStr for SanPlus[src]

type Err = ParseSanError

The associated error which can be returned from parsing.

impl Hash for SanPlus[src]

impl PartialEq<SanPlus> for SanPlus[src]

impl StructuralEq for SanPlus[src]

impl StructuralPartialEq for SanPlus[src]

Auto Trait Implementations

impl RefUnwindSafe for SanPlus

impl Send for SanPlus

impl Sync for SanPlus

impl Unpin for SanPlus

impl UnwindSafe for SanPlus

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.