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
pub trait MapJsError<T> {
// Required method
fn map_err_to_js(self) -> Result<T, JsValue>;
}
An extension trait on Result
that helps easy conversion of Rust errors to JavaScript
error strings usable by wasm_bindgen