[][src]Trait boa::class::ClassConstructor

pub trait ClassConstructor: Class {
    pub fn raw_constructor(
        this: &Value,
        args: &[Value],
        context: &mut Context
    ) -> Result<Value>
    where
        Self: Sized
; }

This is a wrapper around Class::constructor that sets the internal data of a class.

This is automatically implemented, when a type implements Class.

Required methods

pub fn raw_constructor(
    this: &Value,
    args: &[Value],
    context: &mut Context
) -> Result<Value> where
    Self: Sized
[src]

The raw constructor that mathces the NativeFunction signature.

Loading content...

Implementors

impl<T: Class> ClassConstructor for T[src]

Loading content...