pub enum InvalidMoveError {
CellAlreadyOccupied,
InvalidBoard,
}
Expand description
Making a move wasn’t possible. Used by super_ttt::Game::make_move
Variants§
CellAlreadyOccupied
The specified cell is already occupied
InvalidBoard
The specified board does not match the coordinates of the opponent’s last move
Trait Implementations§
Source§impl Clone for InvalidMoveError
impl Clone for InvalidMoveError
Source§fn clone(&self) -> InvalidMoveError
fn clone(&self) -> InvalidMoveError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InvalidMoveError
impl Debug for InvalidMoveError
Source§impl Display for InvalidMoveError
impl Display for InvalidMoveError
Source§impl PartialEq for InvalidMoveError
impl PartialEq for InvalidMoveError
impl Eq for InvalidMoveError
impl StructuralPartialEq for InvalidMoveError
Auto Trait Implementations§
impl Freeze for InvalidMoveError
impl RefUnwindSafe for InvalidMoveError
impl Send for InvalidMoveError
impl Sync for InvalidMoveError
impl Unpin for InvalidMoveError
impl UnwindSafe for InvalidMoveError
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