Struct rquickjs_core::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>
impl<'js, C> !Send for WithProto<'js, C>
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> where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more