pub enum VNode<'a, T: OutputType + 'a> {
Text(&'a str),
UnsafeText(&'a str),
Element(VElement<'a, T>),
}
Expand description
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()
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.