pub trait ObjectDef {
    fn init<'js>(ctx: Ctx<'js>, object: &Object<'js>) -> Result<()>;
}
Expand description

The helper trait to define objects

Required Methods

Initialize object contents

You should set fields with specific values using Object::set method.

Implementations on Foreign Types

Implementors