pub struct DummyExternal {
pub supported: bool,
}
Fields
supported: bool
Implementations
sourceimpl DummyExternal
impl DummyExternal
Trait Implementations
sourceimpl Clone for DummyExternal
impl Clone for DummyExternal
sourcefn clone(&self) -> DummyExternal
fn clone(&self) -> DummyExternal
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DummyExternal
impl Debug for DummyExternal
sourceimpl Default for DummyExternal
impl Default for DummyExternal
sourcefn default() -> DummyExternal
fn default() -> DummyExternal
Returns the “default value” for a type. Read more
sourceimpl ExternalSystem for DummyExternal
impl ExternalSystem for DummyExternal
sourcefn is_supported(&self) -> bool
fn is_supported(&self) -> bool
Whether the environment supports interaction with external code.
sourcefn call(&self, name: String, params: Option<Vec<Dynamic>>) -> Option<Dynamic>
fn call(&self, name: String, params: Option<Vec<Dynamic>>) -> Option<Dynamic>
Call an external fn with the given parameters, and returns the result. Errors thrown by the called fn will propogate. Read more
sourcefn bind(&self, name: String, function: Dynamic)
fn bind(&self, name: String, function: Dynamic)
Bind a fn to be called by external code. @param name The name to bind to. The namespace may be shared with third party code, so it’s good practice to prefix names. In Javascript, the fn will be hooked onto the window object. @param fn The function, or None to unbind. Read more
impl Copy for DummyExternal
Auto Trait Implementations
impl RefUnwindSafe for DummyExternal
impl Send for DummyExternal
impl Sync for DummyExternal
impl Unpin for DummyExternal
impl UnwindSafe for DummyExternal
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<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.