pub struct AttributeCreateCallback(/* private fields */);Methods from Deref<Target = AttributeCreateCallbackInner>§
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 AttributeCreateCallback
impl Clone for AttributeCreateCallback
Source§fn clone(&self) -> AttributeCreateCallback
fn clone(&self) -> AttributeCreateCallback
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 AttributeCreateCallback
impl Debug for AttributeCreateCallback
Source§impl Deref for AttributeCreateCallback
impl Deref for AttributeCreateCallback
Source§impl From<AttributeCreateCallbackJs> for AttributeCreateCallback
impl From<AttributeCreateCallbackJs> for AttributeCreateCallback
Source§fn from(callback: AttributeCreateCallbackJs) -> Self
fn from(callback: AttributeCreateCallbackJs) -> Self
Converts to this type from the input type.
Source§impl<F: Fn(&AttributeCreateContext) + 'static> From<F> for AttributeCreateCallback
impl<F: Fn(&AttributeCreateContext) + 'static> From<F> for AttributeCreateCallback
Source§impl<F: Fn(&AttributeCreateContext) + 'static> From<Rc<F>> for AttributeCreateCallback
impl<F: Fn(&AttributeCreateContext) + 'static> From<Rc<F>> for AttributeCreateCallback
Source§impl Hash for AttributeCreateCallback
impl Hash for AttributeCreateCallback
Source§impl PartialEq for AttributeCreateCallback
impl PartialEq for AttributeCreateCallback
Source§impl PartialOrd for AttributeCreateCallback
impl PartialOrd for AttributeCreateCallback
impl Eq for AttributeCreateCallback
Auto Trait Implementations§
impl Freeze for AttributeCreateCallback
impl !RefUnwindSafe for AttributeCreateCallback
impl !Send for AttributeCreateCallback
impl !Sync for AttributeCreateCallback
impl Unpin for AttributeCreateCallback
impl !UnwindSafe for AttributeCreateCallback
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