[−][src]Struct shakmaty::san::SanPlus
A San
and possible check and checkmate suffixes.
Fields
san: San
suffix: 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: Position>(
pos: &mut P,
m: &Move
) -> SanPlus
[src]
pos: &mut P,
m: &Move
) -> SanPlus
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: Position>(pos: P, m: &Move) -> SanPlus
[src]
Trait Implementations
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 Eq for SanPlus
[src]
impl PartialEq<SanPlus> for SanPlus
[src]
impl Hash for SanPlus
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for SanPlus
[src]
impl Debug 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]
Auto Trait Implementations
impl Send for SanPlus
impl Unpin for SanPlus
impl Sync for SanPlus
impl UnwindSafe for SanPlus
impl RefUnwindSafe for SanPlus
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &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> 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,