Enum magpie::othello::PositionError
source · pub enum PositionError {
NotOneHotBitboard,
InvalidPosition,
}
Expand description
This enum represents errors that may occur when handling Positions.
Variants§
NotOneHotBitboard
Indicates that the bitboard did not contain exactly one set bit.
InvalidPosition
Indicates that the position could not be parsed.
Trait Implementations§
source§impl Debug for PositionError
impl Debug for PositionError
source§impl Hash for PositionError
impl Hash for PositionError
source§impl PartialEq for PositionError
impl PartialEq for PositionError
source§fn eq(&self, other: &PositionError) -> bool
fn eq(&self, other: &PositionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PositionError
impl StructuralPartialEq for PositionError
Auto Trait Implementations§
impl Freeze for PositionError
impl RefUnwindSafe for PositionError
impl Send for PositionError
impl Sync for PositionError
impl Unpin for PositionError
impl UnwindSafe for PositionError
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