Enum augdom::rsdom::VirtData[][src]

pub enum VirtData {
    Elem {
        tag: String,
        attrs: RefCell<Vec<(String, String)>>,
    },
    Text(String),
}
Expand description

The data of a node in the virtual DOM tree.

Variants

Elem

A virtual element.

Fields of Elem

tag: String

The element’s tag.

attrs: RefCell<Vec<(String, String)>>

The element’s attributes.

Text(String)

A virtual text node.

Tuple Fields of Text

0: String

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Call op within the context of a Layer containing self.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more