Struct shakmaty::san::SanPlus
[−]
[src]
pub struct SanPlus { pub san: San, pub check: bool, pub checkmate: bool, }
A San
and possible check and checkmate suffixes.
Fields
san: San
check: bool
checkmate: bool
Methods
impl SanPlus
[src]
pub fn from_bytes(san: &[u8]) -> Result<SanPlus, InvalidSan>
[src]
Parses a SAN and possible check and checkmate suffix.
Errors
Returns InvalidSan
if san
is not syntactically valid.
Trait Implementations
impl Debug for SanPlus
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for SanPlus
[src]
fn eq(&self, __arg_0: &SanPlus) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SanPlus) -> bool
[src]
This method tests for !=
.
impl Eq for SanPlus
[src]
impl Clone for SanPlus
[src]
fn clone(&self) -> SanPlus
[src]
Returns a copy of the value. Read more
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 = InvalidSan
The associated error which can be returned from parsing.
fn from_str(san: &str) -> Result<SanPlus, InvalidSan>
[src]
Parses a string s
to return a value of this type. Read more