pub enum Tag<'a> {
Show 17 variants
Document(Option<LineEnding>),
Paragraph {
tight: bool,
},
Heading(u8),
BlockQuote,
List {
start: Option<u32>,
tight: bool,
},
Item {
block_end: bool,
},
Emphasis,
Strong,
Delete,
Link {
destination: Text<'a>,
title: Option<Text<'a>>,
},
Image {
destination: Text<'a>,
title: Option<Text<'a>>,
},
Table,
TableHead,
TableBody,
TableRow,
TableCell {
alignment: AlignKind,
header: bool,
},
FootnoteDefinition(Text<'a>),
}Expand description
A container whose metadata is resolved before its start is yielded.
Variants§
Document(Option<LineEnding>)
The preferred output line ending, inferred from parsed block structure.
Paragraph
Whether the containing list suppresses paragraph tags.
Heading(u8)
A heading level from one through six.
BlockQuote
A block quote.
List
A list, its starting number (if ordered), and tightness.
Item
A list item; whether its closing tag needs a preceding line break.
Emphasis
Emphasized inline content.
Strong
Strong inline content.
Delete
Deleted inline content.
Link
Resolved link destination and optional title.
Image
Resolved image destination and optional title.
Table
A table.
TableHead
A table head.
TableBody
A table body.
TableRow
A table row.
TableCell
A cell with its own resolved alignment and header status.
FootnoteDefinition(Text<'a>)
A footnote definition, identified by its normalized label.
Implementations§
Trait Implementations§
impl<'a> Eq for Tag<'a>
impl<'a> StructuralPartialEq for Tag<'a>
Auto Trait Implementations§
impl<'a> Freeze for Tag<'a>
impl<'a> RefUnwindSafe for Tag<'a>
impl<'a> Send for Tag<'a>
impl<'a> Sync for Tag<'a>
impl<'a> Unpin for Tag<'a>
impl<'a> UnsafeUnpin for Tag<'a>
impl<'a> UnwindSafe for Tag<'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