[−][src]Struct oxygengine_script_web::interface::WebScriptInterface
Implementations
impl WebScriptInterface
[src]
pub fn is_ready() -> bool
[src]
pub fn is_invalid() -> bool
[src]
pub fn register_scriptable_resource<S>(&mut self, name: &str, resource: S) where
S: 'static + Scriptable,
[src]
S: 'static + Scriptable,
pub fn register_resource_bridge<'a, S, M>(&mut self, name: &str) where
S: Resource + Send + Sync + ResourceModify<M> + ResourceAccess,
M: Scriptable + From<&'a S>,
[src]
S: Resource + Send + Sync + ResourceModify<M> + ResourceAccess,
M: Scriptable + From<&'a S>,
pub fn register_scriptable_component<S>(&mut self, name: &str, component: S) where
S: 'static + Scriptable,
[src]
S: 'static + Scriptable,
pub fn register_component_bridge<S, M>(&mut self, name: &str, template: S) where
S: Scriptable + Component + Clone + Send + Sync + ComponentModify<M>,
S::Storage: Default,
M: Scriptable + From<S>,
[src]
S: Scriptable + Component + Clone + Send + Sync + ComponentModify<M>,
S::Storage: Default,
M: Scriptable + From<S>,
pub fn register_scriptable_state_factory<S>(&mut self, name: &str, factory: S) where
S: 'static + FnMut() -> Box<dyn WebScriptStateScripted>,
[src]
S: 'static + FnMut() -> Box<dyn WebScriptStateScripted>,
pub fn read_scriptable_resource<T>(name: &str) -> Option<T> where
T: Scriptable,
[src]
T: Scriptable,
pub fn read_js_resource(name: &str) -> Option<ScriptableValue>
[src]
pub fn write_scriptable_resource<T>(name: &str, value: &T) where
T: Scriptable,
[src]
T: Scriptable,
pub fn write_js_resource(name: &str, value: &ScriptableValue)
[src]
Trait Implementations
impl Default for WebScriptInterface
[src]
impl Send for WebScriptInterface
[src]
impl Sync for WebScriptInterface
[src]
Auto Trait Implementations
impl !RefUnwindSafe for WebScriptInterface
impl Unpin for WebScriptInterface
impl !UnwindSafe for WebScriptInterface
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any,
T: Any,
impl<T> TryDefault for T where
T: Default,
T: Default,
fn try_default() -> Result<T, String>
fn unwrap_default() -> Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,