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§
Source§impl Application
impl Application
Trait Implementations§
Source§impl Default for Application
impl Default for Application
Source§impl From<Application> for JsValue
impl From<Application> for JsValue
Source§fn from(value: Application) -> Self
fn from(value: Application) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for Application
impl FromWasmAbi for Application
Source§impl IntoWasmAbi for Application
impl IntoWasmAbi for Application
Source§impl LongRefFromWasmAbi for Application
impl LongRefFromWasmAbi for Application
Source§impl OptionFromWasmAbi for Application
impl OptionFromWasmAbi for Application
Source§impl OptionIntoWasmAbi for Application
impl OptionIntoWasmAbi for Application
Source§impl RefFromWasmAbi for Application
impl RefFromWasmAbi for Application
Source§type Anchor = RcRef<Application>
type Anchor = RcRef<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.Source§impl RefMutFromWasmAbi for Application
impl RefMutFromWasmAbi for Application
Source§impl TryFromJsValue for Application
impl TryFromJsValue for Application
Source§impl VectorFromWasmAbi for Application
impl VectorFromWasmAbi for Application
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Application]>
Source§impl VectorIntoJsValue for Application
impl VectorIntoJsValue for Application
fn vector_into_jsvalue(vector: Box<[Application]>) -> JsValue
Source§impl VectorIntoWasmAbi for Application
impl VectorIntoWasmAbi for Application
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Application]>) -> Self::Abi
Source§impl WasmDescribeVector for Application
impl WasmDescribeVector for Application
impl SupportsConstructor for Application
impl SupportsInstanceProperty for Application
impl SupportsStaticProperty for Application
Auto Trait Implementations§
impl Freeze for Application
impl !RefUnwindSafe for Application
impl !Send for Application
impl !Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application
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
.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.