Expand description
Useful utilities to make development of browser-targeted Rust applications slightly less painful.
Re-exports§
Modules§
Macros§
- closure
- Helper macro for creating
wasm_bindgen
closures. - console_
error - Macro for
error
to add arguments support (like inprint
macro). - console_
log - Macro for
log
to add arguments support (like inprint
macro). - console_
warn - Macro for
warn
to add arguments support (like inprint
macro).
Structs§
- JsError
- Wrapper for
JsValue
errors implementingstd::error::Error
.
Functions§
- body
- Gets document’s body.
- document
- Gets document object.
- error
- Outputs an error message to the web console.
- log
- Outputs a message to the web console.
- set_
panic_ hook - Sets a panic hook that forwards panic messages to
console.error
. - warn
- Outputs a warning message to the web console.
- window
- Gets window object.