[][src]Module seed::prelude

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, and lifecycle hooks.

Re-exports

pub use crate::dom_types::did_mount;
pub use crate::dom_types::did_update;
pub use crate::dom_types::input_ev;
pub use crate::dom_types::keyboard_ev;
pub use crate::dom_types::mouse_ev;
pub use crate::dom_types::pointer_ev;
pub use crate::dom_types::raw_ev;
pub use crate::dom_types::simple_ev;
pub use crate::dom_types::trigger_update_handler;
pub use crate::dom_types::will_unmount;
pub use crate::dom_types::At;
pub use crate::dom_types::El;
pub use crate::dom_types::ElContainer;
pub use crate::dom_types::Ev;
pub use crate::dom_types::Optimize::Key;
pub use crate::dom_types::Tag;
pub use crate::dom_types::UpdateEl;
pub use crate::shortcuts::*;

Structs

Closure

A handle to both a closure in Rust as well as JS closure which will invoke the Rust closure.

HashMap

A hash map implemented with quadratic probing and SIMD lookup.

JsValue

Representation of an object owned by JS.

Orders

Traits

UnwrapThrowExt

An extension trait for Option<T> and Result<T, E> for unwraping the T value, or throwing a JS error if it is not available.