pub trait ToJsValue {
// Required method
fn to_js_value(&self) -> JsValue;
}Expand description
This trait is used to provide an implementation for converting a given type
into a wasm_bindgen::JsValue.
Required Methods§
Sourcefn to_js_value(&self) -> JsValue
fn to_js_value(&self) -> JsValue
Convert the current type to a wasm_bindgen::JsValue;
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".