pub enum VNode {
VTag(Box<VTag>),
VText(VText),
VComp(VComp),
VList(VList),
VRef(Node),
}
Expand description
Bind virtual element to a DOM reference.
Variants§
VTag(Box<VTag>)
A bind between VTag
and Element
.
VText(VText)
A bind between VText
and TextNode
.
VComp(VComp)
A bind between VComp
and Element
.
VList(VList)
A holder for a list of other nodes.
VRef(Node)
A holder for any Node
(necessary for replacing node).
Implementations§
Trait Implementations§
Source§impl<A: Into<VNode>> FromIterator<A> for VNode
impl<A: Into<VNode>> FromIterator<A> for VNode
Source§fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl Freeze for VNode
impl !RefUnwindSafe for VNode
impl !Send for VNode
impl !Sync for VNode
impl Unpin for VNode
impl !UnwindSafe for VNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
Source§fn into_opt_prop_value(self) -> Option<V>
fn into_opt_prop_value(self) -> Option<V>
Convert
self
to an optional value of a Properties
struct.Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.