Module percy_dom::prelude[][src]

Expand description

Exports structs and macros that you’ll almost always want access to in a virtual-dom powered application

Macros

Used to generate VirtualNode’s from a TokenStream.

Structs

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

Used for keeping a real DOM node up to date based on the current VirtualNode and a new incoming VirtualNode that represents our latest DOM state.

We need a custom implementation of fmt::Debug since JsValue doesn’t implement debug.

An iterator that moves out of a vector.

Used by the html! macro for all braced child nodes so that we can use any type that implements Into

Enums

When building your views you’ll typically use the html! macro to generate VirtualNode’s.

Traits

A trait with common functionality for rendering front-end views.

Functions

Type Definitions

Box<dyn AsRef>> is our js_sys::Closure. Stored this way to allow us to store any Closure regardless of the types of its arguments.