devela::_dep::web_sys::js_sys::wasm_bindgen

Module prelude

Source
Available on crate feature dep_web_sys only.
Expand description

A module which is typically glob imported.

use wasm_bindgen::prelude::*;

Structs§

  • A handle to both a closure in Rust as well as JS closure which will invoke the Rust closure.
  • Convenience type for use on exported fn() -> Result<T, JsError> functions, where you wish to throw a JavaScript Error object.
  • Representation of an object owned by JS.

Traits§

  • A trait for checked and unchecked casting between JS types.
  • An extension trait for Option<T> and Result<T, E> for unwrapping the T value, or throwing a JS error if it is not available.

Attribute Macros§