Enum yew::virtual_dom::vnode::VNode
source · pub enum VNode<CTX, COMP: Component<CTX>> {
VTag(VTag<CTX, COMP>),
VText(VText<CTX, COMP>),
VComp(VComp<CTX, COMP>),
VList(VList<CTX, COMP>),
VRef(Node),
}
Expand description
Bind virtual element to a DOM reference.
Variants
VTag(VTag<CTX, COMP>)
A bind between VTag
and Element
.
VText(VText<CTX, COMP>)
A bind between VText
and TextNode
.
VComp(VComp<CTX, COMP>)
A bind between VComp
and Element
.
VList(VList<CTX, COMP>)
A holder for a list of other nodes.
VRef(Node)
A holder for any Node
(necessary for replacing node).
Trait Implementations
sourceimpl<'a, CTX, COMP: Component<CTX>> From<&'a (dyn Renderable<CTX, COMP> + 'a)> for VNode<CTX, COMP>
impl<'a, CTX, COMP: Component<CTX>> From<&'a (dyn Renderable<CTX, COMP> + 'a)> for VNode<CTX, COMP>
sourcefn from(value: &'a dyn Renderable<CTX, COMP>) -> Self
fn from(value: &'a dyn Renderable<CTX, COMP>) -> Self
Converts to this type from the input type.
sourceimpl<CTX, COMP: Component<CTX>> PartialEq<VNode<CTX, COMP>> for VNode<CTX, COMP>
impl<CTX, COMP: Component<CTX>> PartialEq<VNode<CTX, COMP>> for VNode<CTX, COMP>
Auto Trait Implementations
impl<CTX, COMP> !RefUnwindSafe for VNode<CTX, COMP>
impl<CTX, COMP> !Send for VNode<CTX, COMP>
impl<CTX, COMP> !Sync for VNode<CTX, COMP>
impl<CTX, COMP> Unpin for VNode<CTX, COMP>where
COMP: Unpin,
CTX: Unpin,
impl<CTX, COMP> !UnwindSafe for VNode<CTX, COMP>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more