pub enum Block {
Show 14 variants 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(i32AttrVec<Inline>), HorizontalRule, Table(Table), Div(AttrVec<Block>), Null,
}

Variants

Plain(Vec<Inline>)

Plain text, not a paragraph

Para(Vec<Inline>)

Paragraph

LineBlock(Vec<Vec<Inline>>)

Multiple non-breaking lines

CodeBlock(AttrString)

Code block (literal) with attributes

RawBlock(FormatString)

Raw block

BlockQuote(Vec<Block>)

Block quote

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

Header - level (integer) and text (inlines)

HorizontalRule

Horizontal rule

Table(Table)

Table

Div(AttrVec<Block>)

Generic block container with attributes

Null

Nothing

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Returns an iterator over the immediately contained blocks.

Returns an iterator over the immediately contained blocks, allowing each block to be modified.

Returns an iterator over the immediately contained inlines.

Returns an iterator over the immediately contained inlines, allowing each inline to be modified.

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.