Enum domafic::dom_node::DomValue [] [src]

pub enum DomValue<'a> {
    Element {
        tag: &'static str,
    },
    Text(&'a str),
}

"Value" of a DomNode: either an element's tag name (e.g. "div"/"h1"/"body") or the text value of a text node (e.g. "Hello world!").

Variants

A tag element

Fields of Element

&'static str tag name, such as div or span.

A text node