#[repr(u8)]
pub enum Moveable {
Allowed,
UnoccupiedSrc,
OccupiedDest,
OutOfBounds,
Unplayable,
WrongTeamSrc,
IllegalTrajectory,
NoJumpablePiece,
JumpingSameTeam,
}
Expand description
Possible outcomes of trying to move
Variants
Allowed
UnoccupiedSrc
OccupiedDest
OutOfBounds
Unplayable
WrongTeamSrc
IllegalTrajectory
NoJumpablePiece
JumpingSameTeam
Trait Implementations
sourceimpl FromWasmAbi for Moveable
impl FromWasmAbi for Moveable
sourceimpl IntoWasmAbi for Moveable
impl IntoWasmAbi for Moveable
sourceimpl OptionFromWasmAbi for Moveable
impl OptionFromWasmAbi for Moveable
sourceimpl OptionIntoWasmAbi for Moveable
impl OptionIntoWasmAbi for Moveable
sourceimpl WasmDescribe for Moveable
impl WasmDescribe for Moveable
impl Copy for Moveable
impl Eq for Moveable
impl StructuralEq for Moveable
impl StructuralPartialEq for Moveable
Auto Trait Implementations
impl RefUnwindSafe for Moveable
impl Send for Moveable
impl Sync for Moveable
impl Unpin for Moveable
impl UnwindSafe for Moveable
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