Enum shakmaty::ParseOutcomeError
source · [−]pub enum ParseOutcomeError {
Unknown,
Invalid,
}
Expand description
Error when parsing the outcome of a game.
Variants
Unknown
Got *
.
Invalid
Got a string other than 1-0
, 0-1
, 1/2-1/2
, or *
.
Trait Implementations
sourceimpl Clone for ParseOutcomeError
impl Clone for ParseOutcomeError
sourcefn clone(&self) -> ParseOutcomeError
fn clone(&self) -> ParseOutcomeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ParseOutcomeError
impl Debug for ParseOutcomeError
sourceimpl Display for ParseOutcomeError
impl Display for ParseOutcomeError
sourceimpl Error for ParseOutcomeError
impl Error for ParseOutcomeError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for ParseOutcomeError
impl Send for ParseOutcomeError
impl Sync for ParseOutcomeError
impl Unpin for ParseOutcomeError
impl UnwindSafe for ParseOutcomeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more