Crate wasm_bindgen[−][src]
Runtime support for the wasm-bindgen tool
This crate contains the runtime support necessary for wasm-bindgen the
attribute and tool. Crates pull in the #[wasm_bindgen] attribute through
this crate and this crate also provides JS bindings through the JsValue
interface.
Modules
| closure | Support for long-lived closures in |
| convert | This is mostly an internal module, no stability guarantees are provided. Use at your own risk. |
| prelude | A module which is typically glob imported from: |
Structs
| Clamped | A wrapper type around slices and vectors for binding the |
| JsStatic | Wrapper type for imported statics. |
| JsValue | Representation of an object owned by JS. |
Traits
| JsCast | A trait for checked and unchecked casting between JS types. |
| UnwrapThrowExt | An extension trait for |
Functions
| externref_heap_live_count | Get the count of live |
| function_table | Returns a handle to this wasm instance’s |
| intern | Interns Rust strings so that it’s much faster to send them to JS. |
| memory | Returns a handle to this wasm instance’s |
| throw_str | Throws a JS exception. |
| throw_val | Rethrow a JS exception |
| unintern | Removes a Rust string from the intern cache. |