pub trait TryIntoJs: Sized {
// Required method
fn try_into_js(&self, context: &mut Context) -> Result<JsValue, JsError>;
}Expand description
This trait adds a conversions from a Rust Type into JsValue.
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.