[][src]Struct rust_fel::element::Element

pub struct Element {
    pub html_type: String,
    pub props: Props,
}

The structure which represents a Virtual DOM for the rust_fel library. It holds rust_fel::Props , which in turn hold a Vec of Element's as children. This means Element can represent a tree of DOM Elements.

Fields

html_type: Stringprops: Props

Implementations

impl Element[src]

pub fn new(html_type: String, props: Props) -> Element[src]

Trait Implementations

impl Debug for Element[src]

impl Default for Element[src]

Auto Trait Implementations

impl !RefUnwindSafe for Element

impl !Send for Element

impl !Sync for Element

impl Unpin for Element

impl !UnwindSafe for Element

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.