pub enum NormalizerError {
CoreConvert(CoreConvertError),
NoLastMove,
MoveInconsistent(&'static str),
AmbiguousMoveFrom(Vec<Square>),
}
Expand description
An error that can occur while normalizing JsonKifuFormat
Variants
CoreConvert(CoreConvertError)
From CoreConvertError
NoLastMove
shogi_core::PartialPosition::last_move()
is required if jkf::MoveMoveFormat::same
is some
MoveInconsistent(&'static str)
The jkf::MoveMoveFormat
data is invalid for current shogi_core::PartialPosition
AmbiguousMoveFrom(Vec<Square>)
Couldn’t disambiguous the jkf::MoveMoveFormat.from
Trait Implementations
sourceimpl Debug for NormalizerError
impl Debug for NormalizerError
sourceimpl Display for NormalizerError
impl Display for NormalizerError
sourceimpl Error for NormalizerError
impl Error for NormalizerError
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()
sourceimpl From<CoreConvertError> for NormalizerError
impl From<CoreConvertError> for NormalizerError
sourcefn from(source: CoreConvertError) -> Self
fn from(source: CoreConvertError) -> Self
Converts to this type from the input type.
sourceimpl From<NormalizerError> for ConvertError
impl From<NormalizerError> for ConvertError
sourcefn from(source: NormalizerError) -> Self
fn from(source: NormalizerError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<NormalizerError> for NormalizerError
impl PartialEq<NormalizerError> for NormalizerError
sourcefn eq(&self, other: &NormalizerError) -> bool
fn eq(&self, other: &NormalizerError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NormalizerError) -> bool
fn ne(&self, other: &NormalizerError) -> bool
This method tests for !=
.
impl StructuralPartialEq for NormalizerError
Auto Trait Implementations
impl RefUnwindSafe for NormalizerError
impl Send for NormalizerError
impl Sync for NormalizerError
impl Unpin for NormalizerError
impl UnwindSafe for NormalizerError
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