pub struct WasmPawn { /* private fields */ }
Implementations§
Source§impl WasmPawn
impl WasmPawn
pub fn new(pointer: WasmCoordinates, texture_id: u32) -> WasmPawn
pub fn pointer(&self) -> WasmCoordinates
pub fn set_tile(&mut self, pointer: WasmCoordinates)
pub fn texture_id(&self) -> u32
pub fn set_texture_id(&mut self, texture_id: u32)
Trait Implementations§
Source§impl FromWasmAbi for WasmPawn
impl FromWasmAbi for WasmPawn
Source§impl IntoWasmAbi for WasmPawn
impl IntoWasmAbi for WasmPawn
Source§impl LongRefFromWasmAbi for WasmPawn
impl LongRefFromWasmAbi for WasmPawn
Source§impl OptionFromWasmAbi for WasmPawn
impl OptionFromWasmAbi for WasmPawn
Source§impl OptionIntoWasmAbi for WasmPawn
impl OptionIntoWasmAbi for WasmPawn
Source§impl RefFromWasmAbi for WasmPawn
impl RefFromWasmAbi for WasmPawn
Source§impl RefMutFromWasmAbi for WasmPawn
impl RefMutFromWasmAbi for WasmPawn
Source§impl TryFromJsValue for WasmPawn
impl TryFromJsValue for WasmPawn
Source§impl VectorFromWasmAbi for WasmPawn
impl VectorFromWasmAbi for WasmPawn
Source§impl VectorIntoWasmAbi for WasmPawn
impl VectorIntoWasmAbi for WasmPawn
Source§impl WasmWrapper<Pawn> for WasmPawn
impl WasmWrapper<Pawn> for WasmPawn
impl SupportsConstructor for WasmPawn
impl SupportsInstanceProperty for WasmPawn
impl SupportsStaticProperty for WasmPawn
Auto Trait Implementations§
impl Freeze for WasmPawn
impl RefUnwindSafe for WasmPawn
impl Send for WasmPawn
impl Sync for WasmPawn
impl Unpin for WasmPawn
impl UnwindSafe for WasmPawn
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn 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
.