[][src]Struct pgn_reader::SanPlus

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

A San and possible check and checkmate suffixes.

Fields

san: Sansuffix: Option<Suffix>

Methods

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]

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

Performs copy-assignment from source. Read more

impl FromStr for SanPlus[src]

type Err = ParseSanError

The associated error which can be returned from parsing.

impl Eq for SanPlus[src]

impl PartialEq<SanPlus> for SanPlus[src]

impl Display for SanPlus[src]

impl Hash for SanPlus[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for SanPlus[src]

Auto Trait Implementations

impl Sync for SanPlus

impl Send for SanPlus

impl Unpin for SanPlus

impl RefUnwindSafe for SanPlus

impl UnwindSafe for SanPlus

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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