Struct rquickjs_core::class::WithProto
source · pub struct WithProto<'js, C>(pub C, pub Object<'js>);
Available on crate feature
classes
only.Expand description
The prototype setting wrapper
This wrapper helps instantiate a class with desired prototype which is quite useful with constructors because allows class to be inheritable.
Tuple Fields§
§0: C
§1: Object<'js>
Trait Implementations§
Auto Trait Implementations§
impl<'js, C> RefUnwindSafe for WithProto<'js, C>where C: RefUnwindSafe,
impl<'js, C> Send for WithProto<'js, C>where C: Send,
impl<'js, C> !Sync for WithProto<'js, C>
impl<'js, C> Unpin for WithProto<'js, C>where C: Unpin,
impl<'js, C> !UnwindSafe for WithProto<'js, C>
Blanket Implementations§
source§impl<'js, T> AsProperty<'js, T> for Twhere
T: IntoJs<'js>,
impl<'js, T> AsProperty<'js, T> for Twhere T: IntoJs<'js>,
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