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