[][src]Enum typed_html::dom::VNode

pub enum VNode<'a, T: OutputType + 'a> {
    Text(&'a str),
    UnsafeText(&'a str),
    Element(VElement<'a, T>),
}

An untyped representation of an HTML node.

This structure is designed to be easily walked in order to render a DOM tree or diff against an existing tree. It's the stringly typed version of Node.

It can be constructed from any 'Node':

html!(
    <p>"But how does she "<em>"eat?"</em></p>
).vnode()

Variants

Text(&'a str)
UnsafeText(&'a str)
Element(VElement<'a, T>)

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for VNode<'a, T> where
    <T as OutputType>::Events: RefUnwindSafe

impl<'a, T> Send for VNode<'a, T> where
    <T as OutputType>::Events: Send

impl<'a, T> Sync for VNode<'a, T> where
    <T as OutputType>::Events: Sync

impl<'a, T> Unpin for VNode<'a, T>

impl<'a, T> !UnwindSafe for VNode<'a, T>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.