[][src]Struct oxygengine_script_web::web_api::WebScriptApi

pub struct WebScriptApi;

Implementations

impl WebScriptApi[src]

pub fn start()[src]

pub fn register_resource(name: &str, resource: JsValue)[src]

pub fn register_state_factory(name: &str, factory: Function)[src]

pub fn register_component_factory(name: &str, factory: Function)[src]

pub fn register_system(name: &str, system: JsValue)[src]

pub fn create_entity(data: JsValue) -> EntityId[src]

pub fn destroy_entity(id: EntityId)[src]

pub fn fetch(constrains: &Array) -> WebScriptFetch[src]

Trait Implementations

impl Clone for WebScriptApi[src]

impl Copy for WebScriptApi[src]

impl Debug for WebScriptApi[src]

impl Default for WebScriptApi[src]

impl From<WebScriptApi> for JsValue[src]

impl FromWasmAbi for WebScriptApi[src]

type Abi = u32

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for WebScriptApi[src]

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl OptionFromWasmAbi for WebScriptApi[src]

impl OptionIntoWasmAbi for WebScriptApi[src]

impl RefFromWasmAbi for WebScriptApi[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, WebScriptApi>

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

impl RefMutFromWasmAbi for WebScriptApi[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, WebScriptApi>

Same as RefFromWasmAbi::Anchor

impl WasmDescribe for WebScriptApi[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any, 

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,