pub enum BoardError {
Occupied,
Empty,
}
Expand description
Enum for errors that can occur when interacting with the board
§Variants
Occupied
: The space is already occupiedEmpty
: The space is empty
Variants§
Trait Implementations§
Source§impl Debug for BoardError
impl Debug for BoardError
Source§impl PartialEq for BoardError
impl PartialEq for BoardError
impl StructuralPartialEq for BoardError
Auto Trait Implementations§
impl Freeze for BoardError
impl RefUnwindSafe for BoardError
impl Send for BoardError
impl Sync for BoardError
impl Unpin for BoardError
impl UnwindSafe for BoardError
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