[][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.

Re-exports

pub use crate::app::cmds;
pub use crate::app::streams;
pub use crate::app::subs;
pub use crate::app::App;
pub use crate::app::CmdHandle;
pub use crate::app::GetElement;
pub use crate::app::MessageMapper;
pub use crate::app::Orders;
pub use crate::app::RenderInfo;
pub use crate::app::StreamHandle;
pub use crate::app::SubHandle;
pub use crate::browser::dom::css_units::*;
pub use crate::browser::dom::event_handler::drag_ev;
pub use crate::browser::dom::event_handler::ev;
pub use crate::browser::dom::event_handler::input_ev;
pub use crate::browser::dom::event_handler::keyboard_ev;
pub use crate::browser::dom::event_handler::mouse_ev;
pub use crate::browser::dom::event_handler::pointer_ev;
pub use crate::browser::dom::event_handler::raw_ev;
pub use crate::browser::dom::event_handler::simple_ev;
pub use crate::browser::dom::event_handler::touch_ev;
pub use crate::browser::fetch;
pub use crate::browser::fetch::fetch;
pub use crate::browser::fetch::FetchError;
pub use crate::browser::fetch::Header;
pub use crate::browser::util::request_animation_frame;
pub use crate::browser::util::ClosureNew;
pub use crate::browser::util::RequestAnimationFrameHandle;
pub use crate::browser::util::RequestAnimationFrameTime;
pub use crate::browser::web_socket;
pub use crate::browser::web_socket::CloseEvent;
pub use crate::browser::web_socket::WebSocket;
pub use crate::browser::web_socket::WebSocketError;
pub use crate::browser::web_storage;
pub use crate::browser::web_storage::LocalStorage;
pub use crate::browser::web_storage::SessionStorage;
pub use crate::browser::web_storage::WebStorage;
pub use crate::browser::Url;
pub use crate::browser::UrlSearch;
pub use crate::helpers::not;
pub use crate::shortcuts::*;
pub use crate::virtual_dom::el_key;
pub use crate::virtual_dom::el_ref::el_ref;
pub use crate::virtual_dom::AsAtValue;
pub use crate::virtual_dom::AtValue;
pub use crate::virtual_dom::CSSValue;
pub use crate::virtual_dom::El;
pub use crate::virtual_dom::ElRef;
pub use crate::virtual_dom::EventHandler;
pub use crate::virtual_dom::IntoNodes;
pub use crate::virtual_dom::Node;
pub use crate::virtual_dom::ToClasses;
pub use crate::virtual_dom::UpdateEl;
pub use crate::virtual_dom::UpdateElForIterator;
pub use crate::virtual_dom::View;
pub use js_sys;
pub use wasm_bindgen;
pub use web_sys;

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.

Request

Its methods configure the request, and handle the response. Many of them return the original struct, and are intended to be used chained together.

Response

Response of the fetch request. To get one you need to use fetch function.

Status

Response status.

WebSocketMessage

Enums

At

The At enum restricts element-creation to only valid event names, as defined here: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes

Ev

The Ev enum restricts element-creation to only valid event names, as defined here: MDN reference Web/Events

Method

HTTP Method types.

St

The St enum restricts element-creation to only valid styles.

Tag

The Tag enum restricts element-creation to only valid tags, as defined here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element

Traits

JsCast

A trait for checked and unchecked casting between JS types.

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.

Attribute Macros

__wasm_bindgen_class_marker
wasm_bindgen