Skip to main content

ItemG

Type Alias ItemG 

Source
pub type ItemG<'a, G> = Item<'a, TagG<'a, G>>;
Expand description

Item type for generator G.

Aliased Type§

pub enum ItemG<'a, G> {
    PlainText(&'a str),
    Element(Vec<Tag<'a, <G as Generator<'a>>::Convertor>>, Vec<Item<'a, Tag<'a, <G as Generator<'a>>::Convertor>>>),
}

Variants§

§

PlainText(&'a str)

Plain text(escaped) without any style.

§

Element(Vec<Tag<'a, <G as Generator<'a>>::Convertor>>, Vec<Item<'a, Tag<'a, <G as Generator<'a>>::Convertor>>>)

A styled element, contains a series tag name and subitems.