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(LocatedSpan<&'a str, usize>),
    Element(Vec<Tag<'a, <G as Generator<'a>>::Convertor>>, Vec<Item<'a, Tag<'a, <G as Generator<'a>>::Convertor>>>),
}

Variants§

§

PlainText(LocatedSpan<&'a str, usize>)

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.