Struct moon_engine::Application
source · [−]pub struct Application { /* private fields */ }
Expand description
The Application
struct acts as the communicator between the browser and the game logic. It consists of calls made from JavaScript.
Implementations
sourceimpl Application
impl Application
Trait Implementations
sourceimpl Default for Application
impl Default for Application
sourceimpl From<Application> for JsValue
impl From<Application> for JsValue
sourcefn from(value: Application) -> Self
fn from(value: Application) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for Application
impl FromWasmAbi for Application
sourceimpl IntoWasmAbi for Application
impl IntoWasmAbi for Application
sourceimpl OptionFromWasmAbi for Application
impl OptionFromWasmAbi for Application
sourceimpl OptionIntoWasmAbi for Application
impl OptionIntoWasmAbi for Application
sourceimpl RefFromWasmAbi for Application
impl RefFromWasmAbi for Application
type Anchor = Ref<'static, Application>
type Anchor = Ref<'static, Application>
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 Application
impl RefMutFromWasmAbi for Application
type Anchor = RefMut<'static, Application>
type Anchor = RefMut<'static, Application>
Same as RefFromWasmAbi::Anchor
sourceunsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as RefFromWasmAbi::ref_from_abi
sourceimpl WasmDescribe for Application
impl WasmDescribe for Application
Auto Trait Implementations
impl !RefUnwindSafe for Application
impl !Send for Application
impl !Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application
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
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.