pub struct UniformCreateUpdateCallback(/* private fields */);Methods from Deref<Target = Callback<dyn Fn(&UniformContext), UniformCreateUpdateCallbackJs>>§
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 UniformCreateUpdateCallback
impl Clone for UniformCreateUpdateCallback
Source§fn clone(&self) -> UniformCreateUpdateCallback
fn clone(&self) -> UniformCreateUpdateCallback
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UniformCreateUpdateCallback
impl Debug for UniformCreateUpdateCallback
Source§impl Deref for UniformCreateUpdateCallback
impl Deref for UniformCreateUpdateCallback
Source§impl<F: Fn(&UniformContext) + 'static> From<F> for UniformCreateUpdateCallback
impl<F: Fn(&UniformContext) + 'static> From<F> for UniformCreateUpdateCallback
Source§impl<F: Fn(&UniformContext) + 'static> From<Rc<F>> for UniformCreateUpdateCallback
impl<F: Fn(&UniformContext) + 'static> From<Rc<F>> for UniformCreateUpdateCallback
Source§impl From<UniformCreateUpdateCallbackJs> for UniformCreateUpdateCallback
impl From<UniformCreateUpdateCallbackJs> for UniformCreateUpdateCallback
Source§fn from(callback: UniformCreateUpdateCallbackJs) -> Self
fn from(callback: UniformCreateUpdateCallbackJs) -> Self
Converts to this type from the input type.
Source§impl Hash for UniformCreateUpdateCallback
impl Hash for UniformCreateUpdateCallback
Source§impl PartialOrd for UniformCreateUpdateCallback
impl PartialOrd for UniformCreateUpdateCallback
impl Eq for UniformCreateUpdateCallback
impl StructuralPartialEq for UniformCreateUpdateCallback
Auto Trait Implementations§
impl Freeze for UniformCreateUpdateCallback
impl !RefUnwindSafe for UniformCreateUpdateCallback
impl !Send for UniformCreateUpdateCallback
impl !Sync for UniformCreateUpdateCallback
impl Unpin for UniformCreateUpdateCallback
impl !UnwindSafe for UniformCreateUpdateCallback
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