Enum pandoc_ast::Block [] [src]

pub enum Block {
    Plain(Vec<Inline>),
    Para(Vec<Inline>),
    LineBlock(Vec<Vec<Inline>>),
    CodeBlock(AttrString),
    RawBlock(FormatString),
    BlockQuote(Vec<Block>),
    OrderedList(ListAttributesVec<Vec<Block>>),
    BulletList(Vec<Vec<Block>>),
    DefinitionList(Vec<(Vec<Inline>, Vec<Vec<Block>>)>),
    Header(IntAttrVec<Inline>),
    HorizontalRule,
    Table(Vec<Inline>, Vec<Alignment>, Vec<Double>, Vec<TableCell>, Vec<Vec<TableCell>>),
    Div(AttrVec<Block>),
    Null,
}

Structured text like tables and lists

Variants

Plain text, not a paragraph

Paragraph

Multiple non-breaking lines

Code block (literal) with attributes

Block quote (list of blocks)

Ordered list (attributes and a list of items, each a list of blocks)

Bullet list (list of items, each a list of blocks)

Definition list Each list item is a pair consisting of a term (a list of inlines) and one or more definitions (each a list of blocks)

Header - level (integer) and text (inlines)

Table, with caption, column alignments (required), relative column widths (0 = default), column headers (each a list of blocks), and rows (each a list of lists of blocks)

Generic block container with attributes

Nothing

Trait Implementations

impl Debug for Block
[src]

Formats the value using the given formatter.

impl Clone for Block
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Block
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.