[][src]Module euca::patch

Dom patching functionality.

This module implements the Patch and PatchSet types which provide the tools necessary to describe a set of changes to a dom tree. Also provided is the PatchSet::apply method which will apply a patch set to the browser's dom tree creating elements as the children of the given parent element and dispatching events using the given dispatcher.

Structs

PatchSet

A series of Patches to apply to the dom.

Enums

Patch

This enum describes all of the operations we need to preform to move the dom to the desired state. The patch operations expect web_sys::Element, web_sys::Text, and Closure items to be stored and retrieved from some concrete dom structure which is not provided. The patch operation stores closures which will be called at most once, and either take ownership of and return the desired element or take ownership of and store the given element. Some of the patch operations do not operate on the actual dom but instead move elements and closures from the old virtual dom tree to the new virtual dom tree for storage.