Struct rquickjs_core::WithProto[][src]

pub struct WithProto<'js, C>(pub C, pub Object<'js>);
This is supported on crate feature classes only.

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.

Trait Implementations

impl<'js, C> IntoJs<'js> for WithProto<'js, C> where
    C: ClassDef + IntoJs<'js>, 
[src]

Auto Trait Implementations

impl<'js, C> !RefUnwindSafe for WithProto<'js, C>[src]

impl<'js, C> !Send for WithProto<'js, C>[src]

impl<'js, C> !Sync for WithProto<'js, C>[src]

impl<'js, C> Unpin for WithProto<'js, C> where
    C: Unpin
[src]

impl<'js, C> UnwindSafe for WithProto<'js, C> where
    C: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.