pub enum Tree<'a> {
Group(Group<'a>),
Text(Spanned<CowStr<'a>>),
Code(Spanned<CowStr<'a>>),
Html(Spanned<CowStr<'a>>),
InlineHtml(Spanned<CowStr<'a>>),
FootnoteReference(Spanned<CowStr<'a>>),
SoftBreak(Span),
HardBreak(Span),
Rule(Span),
TaskListMarker(Spanned<bool>),
InlineMath(Spanned<CowStr<'a>>),
DisplayMath(Spanned<CowStr<'a>>),
}
Variants§
Group(Group<'a>)
Text(Spanned<CowStr<'a>>)
Code(Spanned<CowStr<'a>>)
An inline code node.
Html(Spanned<CowStr<'a>>)
An HTML node.
InlineHtml(Spanned<CowStr<'a>>)
An inline HTML node.
FootnoteReference(Spanned<CowStr<'a>>)
A reference to a footnote with given label, which may or may not be defined
by an event with a Tag::FootnoteDefinition
tag. Definitions and references to them may
occur in any order.
SoftBreak(Span)
A soft line break.
HardBreak(Span)
A hard line break.
Rule(Span)
A horizontal ruler.
TaskListMarker(Spanned<bool>)
A task list marker, rendered as a checkbox in HTML. Contains a true when it is checked.
InlineMath(Spanned<CowStr<'a>>)
An inline math environment node.
DisplayMath(Spanned<CowStr<'a>>)
A display math environment node.
Trait Implementations§
Source§impl<'a> IntoIterator for Tree<'a>
impl<'a> IntoIterator for Tree<'a>
impl<'a> StructuralPartialEq for Tree<'a>
Auto Trait Implementations§
impl<'a> Freeze for Tree<'a>
impl<'a> RefUnwindSafe for Tree<'a>
impl<'a> Send for Tree<'a>
impl<'a> Sync for Tree<'a>
impl<'a> Unpin for Tree<'a>
impl<'a> UnwindSafe for Tree<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more