pub trait MapJsError<T> {
// Required method
fn map_err_to_js(self) -> Result<T, JsValue>;
}Expand description
An extension trait on Result that helps easy conversion of Rust errors to JavaScript
error strings usable by wasm_bindgen
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".