Module prelude
A module which is typically glob imported.
use wasm_bindgen::prelude::*;
Structs
-
JsError
Convenience type for use on exported
fn() -> Result<T, JsError>functions, where you wish to throw a JavaScriptErrorobject. - JsValue Representation of an object owned by JS.
- ScopedClosure A closure with a lifetime parameter that represents a Rust closure passed to JavaScript.
Traits
- JsCast A trait for dynamic checked and unchecked casting between JS types.
-
UnwrapThrowExt
An extension trait for
Option<T>andResult<T, E>for unwrapping theTvalue, or throwing a JS error if it is not available. - Upcast A trait for type-safe generic upcasting.
Type Aliases
-
Closure
Alias for [
ScopedClosure<'static, T>] for backwards compatibility.