pub struct UniformShouldUpdateCallback(/* private fields */);Expand description
This callback is used to determine whether a crate::Uniform should be updated or not.
Can be created by converting from either a Rust or a JavaScript callback.
Methods from Deref<Target = UniformShouldUpdateCallbackInner>§
pub fn js(&self) -> Option<CallbackWithContext<J>>
pub fn rs(&self) -> Option<CallbackWithContext<R>>
pub fn js_unwrap(&self) -> CallbackWithContext<J>
pub fn rs_unwrap(&self) -> CallbackWithContext<R>
pub fn js_inner_owned(&self) -> Option<J>
pub fn rs_inner_owned(&self) -> Option<R>
Sourcepub fn call_with_no_arg(&self)
pub fn call_with_no_arg(&self)
If the function is a rust callback, the argument is supplied, otherwise the javascript function is called without any arguments.
Sourcepub fn call_with_rust_arg(&self, a: A)
pub fn call_with_rust_arg(&self, a: A)
If the function is a rust callback, the argument is supplied, otherwise the javascript function is called without any arguments.
Sourcepub fn call_with_rust_arg_and_return(&self, a: A) -> R
pub fn call_with_rust_arg_and_return(&self, a: A) -> R
If the function is a rust callback, the argument is supplied, otherwise the javascript function is called without any arguments.
Returns the result value
Sourcepub fn call_with_js_arg(&self, a: A)
pub fn call_with_js_arg(&self, a: A)
Calls either underlying callback with the argument supplied
Sourcepub fn call_with_into_js_arg(&self, a: A)
pub fn call_with_into_js_arg(&self, a: A)
Calls either underlying callback with the argument supplied
Sourcepub fn call_with_as_js_arg(&self, a: A)
pub fn call_with_as_js_arg(&self, a: A)
Calls either underlying callback with the argument supplied
Sourcepub fn call_with_into_js_arg_and_return(&self, a: A) -> R
pub fn call_with_into_js_arg_and_return(&self, a: A) -> R
Calls either underlying callback with the argument supplied and returns the resulting value
Trait Implementations§
Source§impl Clone for UniformShouldUpdateCallback
impl Clone for UniformShouldUpdateCallback
Source§fn clone(&self) -> UniformShouldUpdateCallback
fn clone(&self) -> UniformShouldUpdateCallback
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more