Struct pgn_reader::SanPlus [−][src]
A San
and possible check and checkmate suffixes.
Fields
san: San
suffix: 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]
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 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.
pub fn from_str(san: &str) -> Result<SanPlus, ParseSanError>
[src]
impl Hash for SanPlus
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,