pub enum EventKind<'a> {
Show 15 variants
Start(Tag<'a>),
End(TagKind),
Text(Text<'a>),
SoftBreak(Text<'a>),
Separator {
value: Text<'a>,
conditional: bool,
},
HardBreak,
Rule,
Code {
value: Text<'a>,
language: Option<Text<'a>>,
},
CodeBlock {
value: Text<'a>,
language: Option<Text<'a>>,
fence: Option<CodeFence>,
math: bool,
unclosed: bool,
},
Math(Text<'a>),
Html {
value: Text<'a>,
block: bool,
},
TaskMarker(bool),
Definition {
label: Text<'a>,
destination: Text<'a>,
title: Option<Text<'a>>,
},
Opaque {
value: Text<'a>,
block: bool,
},
FootnoteReference(Text<'a>),
}Expand description
A resolved leaf, or a start/end of a semantic container.
Variants§
Start(Tag<'a>)
Open a container.
End(TagKind)
Close the matching container.
Text(Text<'a>)
Ordinary decoded text.
SoftBreak(Text<'a>)
A soft source line break within inline content.
Separator
A block separator; conditional separators only terminate nonempty output.
HardBreak
An explicit hard break.
Rule
A thematic break.
Code
An inline code span; optional language metadata is an extension.
CodeBlock
A code/math block, including source fence provenance where available.
Fields
Math(Text<'a>)
Inline mathematics.
Html
Raw HTML.
TaskMarker(bool)
A task-list marker.
Definition
A resolved definition, retained in the AST but omitted from HTML.
Opaque
Frontmatter retained verbatim and omitted from HTML.
FootnoteReference(Text<'a>)
A call to a footnote definition.
Trait Implementations§
impl<'a> Eq for EventKind<'a>
impl<'a> StructuralPartialEq for EventKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for EventKind<'a>
impl<'a> RefUnwindSafe for EventKind<'a>
impl<'a> Send for EventKind<'a>
impl<'a> Sync for EventKind<'a>
impl<'a> Unpin for EventKind<'a>
impl<'a> UnsafeUnpin for EventKind<'a>
impl<'a> UnwindSafe for EventKind<'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