Trait JsObject

Source
pub trait JsObject: Sized + 'static {
    // Required methods
    fn into_js(self, env: Env) -> Result<Value, ConversionError>;
    fn from_js(env: Env, value: Value) -> Result<Self, ConversionError>;
    fn ts_type() -> Type;
}

Required Methods§

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.

Implementors§