Module prelude

Module 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§

pub use crate::app::cmds;
pub use crate::app::streams;
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::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;Deprecated
pub use crate::browser::dom::event_handler::simple_ev;Deprecated
pub use crate::browser::dom::event_handler::touch_ev;
pub use crate::browser::dom::event_handler::wheel_ev;
pub use crate::browser::dom::Namespace;
pub use crate::browser::util::request_animation_frame;Deprecated
pub use crate::browser::util::RequestAnimationFrameHandle;Deprecated
pub use crate::browser::util::RequestAnimationFrameTime;Deprecated
pub use crate::browser::Url;
pub use crate::browser::UrlSearch;
pub use crate::helpers::not;
pub use crate::virtual_dom::el_key;
pub use crate::virtual_dom::el_ref::el_ref;
pub use crate::virtual_dom::on_insert;
pub use crate::virtual_dom::AsAtValue;
pub use crate::virtual_dom::At;
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::Ev;
pub use crate::virtual_dom::EventHandler;
pub use crate::virtual_dom::InsertEventHandler;
pub use crate::virtual_dom::IntoNodes;
pub use crate::virtual_dom::Node;
pub use crate::virtual_dom::St;
pub use crate::virtual_dom::Tag;
pub use crate::virtual_dom::ToClasses;
pub use crate::virtual_dom::UpdateEl;
pub use crate::virtual_dom::UpdateElForIterator;
pub use crate::virtual_dom::UpdateElForOptionIterator;
pub use crate::virtual_dom::View;Deprecated
pub use js_sys;
pub use wasm_bindgen;
pub use web_sys;
pub use crate::browser::dom::css_units::*;
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.
JsError
Convenience type for use on exported fn() -> Result<T, JsError> functions, where you wish to throw a JavaScript Error object.
JsValue
Representation of an object owned by JS.

Traits§

JsCast
A trait for checked and unchecked casting between JS types.
UnwrapThrowExt
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§

__wasm_bindgen_class_marker
wasm_bindgen
A list of all the attributes can be found here: https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/index.html