Struct rquickjs_core::This [−][src]
#[repr(transparent)]pub struct This<T>(pub T);Expand description
The wrapper to get this from input
// Get the `this` value via arguments
let func = Function::new(ctx, |this: This<i32>, factor: i32| {
    this.into_inner() * factor
})?;
// Pass the `this` value to a function
assert_eq!(func.call::<_, i32>((This(3), 2))?, 6);Tuple Fields
0: TImplementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for This<T> where
    T: RefUnwindSafe, 
impl<T> UnwindSafe for This<T> where
    T: UnwindSafe, 
Blanket Implementations
Mutably borrows from an owned value. Read more
