pub enum Tag<'a> {
Show 18 variants
Paragraph,
Rule,
Header(i32),
BlockQuote,
CodeBlock(CowStr<'a>),
List(Option<usize>),
Item,
FootnoteDefinition(CowStr<'a>),
HtmlBlock,
Table(Vec<Alignment>),
TableHead,
TableRow,
TableCell,
Emphasis,
Strong,
Strikethrough,
Link(LinkType, CowStr<'a>, CowStr<'a>),
Image(LinkType, CowStr<'a>, CowStr<'a>),
}
Variants§
Paragraph
Rule
Header(i32)
A heading. The field indicates the level of the heading.
BlockQuote
CodeBlock(CowStr<'a>)
List(Option<usize>)
A list. If the list is ordered the field indicates the number of the first item.
Item
FootnoteDefinition(CowStr<'a>)
HtmlBlock
Table(Vec<Alignment>)
TableHead
TableRow
TableCell
Emphasis
Strong
Strikethrough
Link(LinkType, CowStr<'a>, CowStr<'a>)
A link. The first field is the link type, the second the destination URL and the third is a title
Image(LinkType, CowStr<'a>, CowStr<'a>)
An image. The first field is the link type, the second the destination URL and the third is a title
Trait Implementations§
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> 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