[][src]Struct virtual_node::CreatedElement

pub struct CreatedElement {
    pub element: Element,
    pub closures: HashMap<u32, Vec<DynClosure>>,
}

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.

Fields

element: Element

An Element that was created from a VirtualNode

closures: HashMap<u32, Vec<DynClosure>>

A map of an element's unique identifier along with all of the Closures for that element.

The DomUpdater uses this to look up elements and see if they're still in the page. If not the refernce that we maintain to their closure will be dropped, thus freeing the Closure's memory.

Trait Implementations

impl Deref for CreatedElement[src]

type Target = Element

The resulting type after dereferencing.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.