pub enum MoveError {
GameOver,
CellOccupied,
OutOfRange,
}Expand description
Errors returned by GameState::apply_move.
Variants§
GameOver
The game has already ended (win or draw).
CellOccupied
The target cell is already occupied.
OutOfRange
The target cell is outside the placement radius.
Trait Implementations§
impl Eq for MoveError
impl StructuralPartialEq for MoveError
Auto Trait Implementations§
impl Freeze for MoveError
impl RefUnwindSafe for MoveError
impl Send for MoveError
impl Sync for MoveError
impl Unpin for MoveError
impl UnsafeUnpin for MoveError
impl UnwindSafe for MoveError
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