Expand description
Rank 2 tensor index to identify a board square by row and column
Fields
row: usize
col: usize
Implementations
Trait Implementations
sourceimpl FromWasmAbi for BrdIdx
impl FromWasmAbi for BrdIdx
sourceimpl IntoWasmAbi for BrdIdx
impl IntoWasmAbi for BrdIdx
sourceimpl OptionFromWasmAbi for BrdIdx
impl OptionFromWasmAbi for BrdIdx
sourceimpl OptionIntoWasmAbi for BrdIdx
impl OptionIntoWasmAbi for BrdIdx
sourceimpl RefFromWasmAbi for BrdIdx
impl RefFromWasmAbi for BrdIdx
type Anchor = Ref<'static, BrdIdx>
type Anchor = Ref<'static, BrdIdx>
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 BrdIdx
impl RefMutFromWasmAbi for BrdIdx
sourceimpl WasmDescribe for BrdIdx
impl WasmDescribe for BrdIdx
impl Copy for BrdIdx
impl Eq for BrdIdx
impl StructuralEq for BrdIdx
impl StructuralPartialEq for BrdIdx
Auto Trait Implementations
impl RefUnwindSafe for BrdIdx
impl Send for BrdIdx
impl Sync for BrdIdx
impl Unpin for BrdIdx
impl UnwindSafe for BrdIdx
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