Struct rquickjs::function::RustFunction
source · pub struct RustFunction<'js>(pub Box<dyn RustFunc<'js> + 'js, Global>);
Expand description
The class used for wrapping closures, rquickjs implements callbacks by creating an instances of this class.
Tuple Fields§
§0: Box<dyn RustFunc<'js> + 'js, Global>
Trait Implementations§
source§impl<'js> JsClass<'js> for RustFunction<'js>
impl<'js> JsClass<'js> for RustFunction<'js>
source§impl<'js> Outlive<'js> for RustFunction<'js>
impl<'js> Outlive<'js> for RustFunction<'js>
§type Target<'to> = RustFunction<'to>
type Target<'to> = RustFunction<'to>
The target which has the same type as a
Self
but with another lifetime 't
Auto Trait Implementations§
impl<'js> !RefUnwindSafe for RustFunction<'js>
impl<'js> !Send for RustFunction<'js>
impl<'js> !Sync for RustFunction<'js>
impl<'js> Unpin for RustFunction<'js>
impl<'js> !UnwindSafe for RustFunction<'js>
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