Enum tui_markup::parser::Item
source · [−]Expand description
AST item.
In parsing stage, each line of source code will be parsed as a Vec<Item>, so the final result is Vec<Vec<Item>>.
Tag conversion stage, Each tag will be converted from LSpan into Tag type the generator needed,
by using TagConvertor of the generator.
In generating stage, generator will convert Vec<Vec<Item<'_, Tag>>>> to final output.
Variants
PlainText(LSpan<'a>)
Plain text(escaped) without any style.
Element(Vec<Tag>, Vec<Item<'a, Tag>>)
A styled element, contains a series tag name and subitems.
Trait Implementations
impl<'a, Tag> StructuralPartialEq for Item<'a, Tag>
Auto Trait Implementations
impl<'a, Tag> RefUnwindSafe for Item<'a, Tag> where
Tag: RefUnwindSafe,
impl<'a, Tag> Send for Item<'a, Tag> where
Tag: Send,
impl<'a, Tag> Sync for Item<'a, Tag> where
Tag: Sync,
impl<'a, Tag> Unpin for Item<'a, Tag> where
Tag: Unpin,
impl<'a, Tag> UnwindSafe for Item<'a, Tag> where
Tag: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more