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