[][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::css_units::*;
pub use crate::dom_types::did_mount;
pub use crate::dom_types::did_update;
pub use crate::dom_types::will_unmount;
pub use crate::dom_types::AsAtValue;
pub use crate::dom_types::At;
pub use crate::dom_types::AtValue;
pub use crate::dom_types::CSSValue;
pub use crate::dom_types::El;
pub use crate::dom_types::MessageMapper;
pub use crate::dom_types::Node;
pub use crate::dom_types::Tag;
pub use crate::dom_types::UpdateEl;
pub use crate::dom_types::View;
pub use crate::events::input_ev;
pub use crate::events::keyboard_ev;
pub use crate::events::mouse_ev;
pub use crate::events::pointer_ev;
pub use crate::events::raw_ev;
pub use crate::events::simple_ev;
pub use crate::events::trigger_update_handler;
pub use crate::events::Ev;
pub use crate::orders::Orders;
pub use crate::routing::Url;
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.

IndexMap

A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.

JsValue

Representation of an object owned by JS.

RequestAnimationFrameHandle

Traits

ClosureNew

Prevent repetition when wrapping closures.

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.

Functions

request_animation_frame

Request the animation frame.

Type Definitions

RequestAnimationFrameTime