Enum pandoc_ast::Block [] [src]

pub enum Block {
    Plain(Vec<Inline>),
    Para(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(Vec<Inline>)

Plain text, not a paragraph

Para(Vec<Inline>)

Paragraph

CodeBlock(AttrString)

Code block (literal) with attributes

RawBlock(FormatString)BlockQuote(Vec<Block>)

Block quote (list of blocks)

OrderedList(ListAttributesVec<Vec<Block>>)

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

BulletList(Vec<Vec<Block>>)

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

DefinitionList(Vec<(Vec<Inline>, Vec<Vec<Block>>)>)

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(IntAttrVec<Inline>)

Header - level (integer) and text (inlines)

HorizontalRuleTable(Vec<Inline>, Vec<Alignment>, Vec<Double>, Vec<TableCell>, Vec<Vec<TableCell>>)

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)

Div(AttrVec<Block>)

Generic block container with attributes

Null

Nothing

Trait Implementations

impl Debug for Block
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Deserialize for Block
[src]

fn deserialize<__D>(deserializer: &mut __D) -> Result<Block, __D::Error> where __D: Deserializer

Deserialize this value given this Deserializer.

impl Serialize for Block
[src]

fn serialize<S>(&self, ser: &mut S) -> Result<(), S::Error> where S: Serializer

Serializes this value into this serializer.