Trait wasm_bridge_js::FromJsValue
source · pub trait FromJsValue: Sized {
type WasmAbi: FromWasmAbi;
// Required methods
fn from_js_value(value: &JsValue) -> Result<Self>;
fn from_wasm_abi(abi: Self::WasmAbi) -> Result<Self>;
// Provided method
fn from_fn_result(result: &Result<JsValue, JsValue>) -> Result<Self> { ... }
}