[][src]Crate virtual_node

The virtual_node module exposes the VirtualNode struct and methods that power our virtual dom.

Modules

virtual_node_test_utils

A collection of functions that are useful for unit testing your html! views.

Structs

CreatedElement

A web_sys::Element along with all of the closures that were created for that element's events and all of it's child element's events.

Events

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

Rc

A single-threaded reference-counting pointer. 'Rc' stands for 'Reference Counted'.

RefCell

A mutable memory location with dynamically checked borrow rules

VirtualNode

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

Type Definitions

DynClosure

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