Expand description
Game piece given by its team and strength (normal or kinged)
Fields
team: Team
strength: Strength
Implementations
Trait Implementations
sourceimpl FromWasmAbi for Piece
impl FromWasmAbi for Piece
sourceimpl IntoWasmAbi for Piece
impl IntoWasmAbi for Piece
sourceimpl OptionFromWasmAbi for Piece
impl OptionFromWasmAbi for Piece
sourceimpl OptionIntoWasmAbi for Piece
impl OptionIntoWasmAbi for Piece
sourceimpl RefFromWasmAbi for Piece
impl RefFromWasmAbi for Piece
type Anchor = Ref<'static, Piece>
type Anchor = Ref<'static, Piece>
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
sourceunsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
Recover a Self::Anchor
from Self::Abi
. Read more
sourceimpl RefMutFromWasmAbi for Piece
impl RefMutFromWasmAbi for Piece
sourceimpl WasmDescribe for Piece
impl WasmDescribe for Piece
impl Copy for Piece
impl Eq for Piece
impl StructuralEq for Piece
impl StructuralPartialEq for Piece
Auto Trait Implementations
impl RefUnwindSafe for Piece
impl Send for Piece
impl Sync for Piece
impl Unpin for Piece
impl UnwindSafe for Piece
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