pub enum ShogiError {
InvalidState(String),
}Expand description
将棋のルールに関するエラー
Variants§
Trait Implementations§
Source§impl Debug for ShogiError
impl Debug for ShogiError
Source§impl Display for ShogiError
impl Display for ShogiError
Source§impl Error for ShogiError
impl Error for ShogiError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl PartialEq for ShogiError
impl PartialEq for ShogiError
impl Eq for ShogiError
impl StructuralPartialEq for ShogiError
Auto Trait Implementations§
impl Freeze for ShogiError
impl RefUnwindSafe for ShogiError
impl Send for ShogiError
impl Sync for ShogiError
impl Unpin for ShogiError
impl UnwindSafe for ShogiError
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