pub struct FramebufferCreateCallback(/* private fields */);
Methods from Deref<Target = Callback<dyn Fn(&FramebufferCreateContext) -> WebGlFramebuffer, FramebufferCreateCallbackJs>>§
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 FramebufferCreateCallback
impl Clone for FramebufferCreateCallback
Source§fn clone(&self) -> FramebufferCreateCallback
fn clone(&self) -> FramebufferCreateCallback
Returns a copy 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 FramebufferCreateCallback
impl Debug for FramebufferCreateCallback
Source§impl Deref for FramebufferCreateCallback
impl Deref for FramebufferCreateCallback
Source§type Target = Callback<dyn Fn(&FramebufferCreateContext) -> WebGlFramebuffer, FramebufferCreateCallbackJs>
type Target = Callback<dyn Fn(&FramebufferCreateContext) -> WebGlFramebuffer, FramebufferCreateCallbackJs>
The resulting type after dereferencing.
Source§impl<F: Fn(&FramebufferCreateContext) -> WebGlFramebuffer + 'static> From<F> for FramebufferCreateCallback
impl<F: Fn(&FramebufferCreateContext) -> WebGlFramebuffer + 'static> From<F> for FramebufferCreateCallback
Source§impl From<FramebufferCreateCallbackJs> for FramebufferCreateCallback
impl From<FramebufferCreateCallbackJs> for FramebufferCreateCallback
Source§fn from(callback: FramebufferCreateCallbackJs) -> Self
fn from(callback: FramebufferCreateCallbackJs) -> Self
Converts to this type from the input type.
Source§impl<F: Fn(&FramebufferCreateContext) -> WebGlFramebuffer + 'static> From<Rc<F>> for FramebufferCreateCallback
impl<F: Fn(&FramebufferCreateContext) -> WebGlFramebuffer + 'static> From<Rc<F>> for FramebufferCreateCallback
Source§impl Hash for FramebufferCreateCallback
impl Hash for FramebufferCreateCallback
Source§impl PartialOrd for FramebufferCreateCallback
impl PartialOrd for FramebufferCreateCallback
impl Eq for FramebufferCreateCallback
Auto Trait Implementations§
impl Freeze for FramebufferCreateCallback
impl !RefUnwindSafe for FramebufferCreateCallback
impl !Send for FramebufferCreateCallback
impl !Sync for FramebufferCreateCallback
impl Unpin for FramebufferCreateCallback
impl !UnwindSafe for FramebufferCreateCallback
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