pub trait JavaScriptClassExt: Sized {
// Required methods
fn into_instance(self, env: &Env) -> Result<ClassInstance<'_, Self>>;
fn into_reference(self, env: Env) -> Result<Reference<Self>>;
fn instance_of<V: NapiRaw>(env: Env, value: V) -> Result<bool>;
}Required Methods§
fn into_instance(self, env: &Env) -> Result<ClassInstance<'_, Self>>
fn into_reference(self, env: Env) -> Result<Reference<Self>>
fn instance_of<V: NapiRaw>(env: Env, value: V) -> Result<bool>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.