#[repr(u8)]
pub enum SquareState {
Empty,
Occupied,
Unplayable,
}
Expand description
Model board square as Empty/Occupied/Unplayable
Variants
Empty
Occupied
Unplayable
Trait Implementations
sourceimpl Clone for SquareState
impl Clone for SquareState
sourcefn clone(&self) -> SquareState
fn clone(&self) -> SquareState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SquareState
impl Debug for SquareState
sourceimpl Display for SquareState
impl Display for SquareState
sourceimpl FromWasmAbi for SquareState
impl FromWasmAbi for SquareState
sourceimpl IntoWasmAbi for SquareState
impl IntoWasmAbi for SquareState
sourceimpl OptionFromWasmAbi for SquareState
impl OptionFromWasmAbi for SquareState
sourceimpl OptionIntoWasmAbi for SquareState
impl OptionIntoWasmAbi for SquareState
sourceimpl PartialEq<SquareState> for SquareState
impl PartialEq<SquareState> for SquareState
sourceimpl WasmDescribe for SquareState
impl WasmDescribe for SquareState
impl Copy for SquareState
impl Eq for SquareState
impl StructuralEq for SquareState
impl StructuralPartialEq for SquareState
Auto Trait Implementations
impl RefUnwindSafe for SquareState
impl Send for SquareState
impl Sync for SquareState
impl Unpin for SquareState
impl UnwindSafe for SquareState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more