pub struct GameEncodeError {
pub kind: GameEncodeErrorKind,
pub explanation: String,
}Expand description
Error when encoding a chess game.
Fields§
§kind: GameEncodeErrorKindThe underlying problem that caused the error.
explanation: StringA textual explanation for the error.
Trait Implementations§
Source§impl Debug for GameEncodeError
impl Debug for GameEncodeError
Source§impl Display for GameEncodeError
impl Display for GameEncodeError
Source§impl Error for GameEncodeError
impl Error for GameEncodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for GameEncodeError
impl From<Error> for GameEncodeError
Source§impl From<ParseSanError> for GameEncodeError
impl From<ParseSanError> for GameEncodeError
Source§fn from(inner: ParseSanError) -> Self
fn from(inner: ParseSanError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GameEncodeError
impl RefUnwindSafe for GameEncodeError
impl Send for GameEncodeError
impl Sync for GameEncodeError
impl Unpin for GameEncodeError
impl UnwindSafe for GameEncodeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more