Enum magpie::othello::OthelloError
source · pub enum OthelloError {
IllegalMove,
PiecesOverlapping,
}
Expand description
This enum represents errors that may occur when using the Othello board.
Variants§
IllegalMove
Indicates that an illegal move was attempted.
PiecesOverlapping
Indicates that the operation would have resulted in two or more stones overlapping.
Trait Implementations§
source§impl Debug for OthelloError
impl Debug for OthelloError
source§impl Hash for OthelloError
impl Hash for OthelloError
source§impl PartialEq for OthelloError
impl PartialEq for OthelloError
source§fn eq(&self, other: &OthelloError) -> bool
fn eq(&self, other: &OthelloError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OthelloError
impl StructuralPartialEq for OthelloError
Auto Trait Implementations§
impl Freeze for OthelloError
impl RefUnwindSafe for OthelloError
impl Send for OthelloError
impl Sync for OthelloError
impl Unpin for OthelloError
impl UnwindSafe for OthelloError
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