pub enum VNode {
Element(VElement),
Text(VText),
List(VList),
Component(VComponent),
}Expand description
VNode is enum representing node in virtual DOM tree. Provides a wrapper over different types of nodes along with concise and convinient API for VDOM manipulation.
Variants§
Element(VElement)
Text(VText)
List(VList)
Represents a series of adjacent virtual nodes located at the same depth, contains VList,
Component(VComponent)
Represents user-defined custom component, contains VComponent.
Trait Implementations§
Source§impl From<VComponent> for VNode
impl From<VComponent> for VNode
Source§fn from(vcomp: VComponent) -> Self
fn from(vcomp: VComponent) -> Self
Converts to this type from the input type.
Source§impl<T: Into<VNode>> FromIterator<T> for VNode
impl<T: Into<VNode>> FromIterator<T> for VNode
Source§fn from_iter<U: IntoIterator<Item = T>>(iter: U) -> Self
fn from_iter<U: IntoIterator<Item = T>>(iter: U) -> Self
Creates a value from an iterator. Read more
impl StructuralPartialEq for VNode
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more