[][src]Enum bookbinder_ast::Tag

pub enum Tag<'a> {
    Paragraph,
    Heading(u32),
    BlockQuote,
    BlockQuotation,
    CodeBlock(CodeBlockKind<'a>),
    List(Option<u64>),
    Item,
    FootnoteDefinition(CowStr<'a>),
    Table(Vec<Alignment>),
    TableHead,
    TableRow,
    TableCell,
    Emphasis,
    Strong,
    Link(LinkTypeCowStr<'a>, CowStr<'a>),
    Image(LinkTypeCowStr<'a>, CowStr<'a>),
    Strikethrough,
    Sans,
    Centred,
    SmallCaps,
    RightAligned,
    Superscript,
    Subscript,
    FlattenedFootnote,
    UnindentedParagraph,
}

A tag containing other events

Variants

Paragraph

A paragraph of text and other inline elements

Heading(u32)

A heading. The field indicates the level of the heading.

BlockQuote

A block quote to be rendered as a quote in latex

BlockQuotation

A block quote to be rendered as a quotation in latex

CodeBlock(CodeBlockKind<'a>)

A code block

List(Option<u64>)

A list. If the list is ordered the field indicates the number of the first item. Contains only list items.

Item

A list item

FootnoteDefinition(CowStr<'a>)

The definition of a footnote

Table(Vec<Alignment>)

A table. Contains a vector describing the text-alignment for each of its columns.

TableHead

A table header. Contains only TableRows. Note that the table body starts immediately after the closure of the TableHead tag. There is no TableBody tag.

TableRow

A table row. Is used both for header rows as body rows. Contains only TableCells.

TableCell

An individual table cell

Emphasis

Emphasised text

Strong

Strong (bold) text

An image. The first field is the link type, the second the destination URL and the third is a title.

Image(LinkTypeCowStr<'a>, CowStr<'a>)

A link. The first field is the link type, the second the destination URL and the third is a title.

Strikethrough

Struck through text

Sans

Sans text

Centred

Centred text

SmallCaps

Text in small caps

RightAligned

Text that is aligned right

Superscript

Superscript text

Subscript

Subscript text

FlattenedFootnote

A flattened footnote produced by flatten_footnotes

UnindentedParagraph

A paragraph without an initial indent

Trait Implementations

impl<'a> Clone for Tag<'a>[src]

impl<'a> Debug for Tag<'a>[src]

impl<'a> From<Tag<'a>> for Tag<'a>[src]

impl<'_> MakeStatic for Tag<'_>[src]

type AsStatic = Tag<'static>

This type should simply be the original type with a static lifetime, but has to be represented in this way to work around language limitations Read more

impl<'a> PartialEq<Tag<'a>> for Tag<'a>[src]

impl<'a> StructuralPartialEq for Tag<'a>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,