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;