Module seed::prelude

source ·
Expand description

Introduce El and Tag into the global namespace for convenience (El will be repeated often in the output type of components), and UpdateEl, which is required for element-creation macros, input event constructors, and the History struct. Expose the wasm_bindgen prelude.

Re-exports

Structs

  • A handle to both a closure in Rust as well as JS closure which will invoke the Rust closure.
  • A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
  • 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.

Enums

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