[−][src]Struct pgn_reader::SanPlus
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]
P: Position,
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]
P: Position,
Trait Implementations
impl PartialEq<SanPlus> for SanPlus[src]
impl Display for SanPlus[src]
impl FromStr for SanPlus[src]
type Err = ParseSanError
The associated error which can be returned from parsing.
fn from_str(san: &str) -> Result<SanPlus, ParseSanError>[src]
impl Clone for SanPlus[src]
fn clone(&self) -> SanPlus[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for SanPlus[src]
impl Eq for SanPlus[src]
impl Hash for SanPlus[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,