[][src]Struct vdom::VNode

pub struct VNode {
    pub vnode_type: &'static str,
    pub children: Vec<VNode>,
    pub classes: Vec<String>,
    pub text: Option<String>,
}

Fields

vnode_type: &'static strchildren: Vec<VNode>classes: Vec<String>text: Option<String>

Implementations

impl VNode[src]

pub fn add_class(&mut self, c: &str)[src]

pub fn add_view_child(&mut self, child: VNode)[src]

pub fn render_to_string(&self) -> String[src]

impl VNode[src]

pub fn new(t: &str) -> Self[src]

Auto Trait Implementations

impl RefUnwindSafe for VNode

impl Send for VNode

impl Sync for VNode

impl Unpin for VNode

impl UnwindSafe for VNode

Blanket Implementations

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

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

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

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

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

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.

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.