Enum vertigo::VDomNode[][src]

pub enum VDomNode {
    Element {
        node: VDomElement,
    },
    Text {
        node: VDomText,
    },
    Component {
        node: VDomComponent,
    },
}

Variants

Element
Show fields

Fields of Element

node: VDomElement
Text
Show fields

Fields of Text

node: VDomText
Component
Show fields

Fields of Component

node: VDomComponent

Implementations

impl VDomNode[src]

pub fn node(
    name: &'static str,
    attr_list: Vec<NodeAttr>,
    children: Vec<Self>
) -> Self
[src]

pub fn text<T: Into<String>>(value: T) -> Self[src]

pub fn component(value: VDomComponent) -> Self[src]

Trait Implementations

impl Debug for VDomNode[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl From<VDomComponent> for VDomNode[src]

fn from(node: VDomComponent) -> Self[src]

Performs the conversion.

impl From<VDomElement> for VDomNode[src]

fn from(node: VDomElement) -> Self[src]

Performs the conversion.

impl From<VDomText> for VDomNode[src]

fn from(node: VDomText) -> Self[src]

Performs the conversion.

Auto Trait Implementations

impl !RefUnwindSafe for VDomNode

impl !Send for VDomNode

impl !Sync for VDomNode

impl Unpin for VDomNode

impl !UnwindSafe for VDomNode

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.