Enum pandoc_ast::Block
source · pub enum Block {
Show 15 variants
Plain(Vec<Inline>),
Para(Vec<Inline>),
LineBlock(Vec<Vec<Inline>>),
CodeBlock(Attr, String),
RawBlock(Format, String),
BlockQuote(Vec<Block>),
OrderedList(ListAttributes, Vec<Vec<Block>>),
BulletList(Vec<Vec<Block>>),
DefinitionList(Vec<(Vec<Inline>, Vec<Vec<Block>>)>),
Figure(Attr, Caption, Vec<Block>),
Header(Int, Attr, Vec<Inline>),
HorizontalRule,
Table(Attr, Caption, Vec<ColSpec>, TableHead, Vec<TableBody>, TableFoot),
Div(Attr, Vec<Block>),
Null,
}
Expand description
Structured text like tables and lists
Variants§
Plain(Vec<Inline>)
Plain text, not a paragraph
Para(Vec<Inline>)
Paragraph
LineBlock(Vec<Vec<Inline>>)
Multiple non-breaking lines
CodeBlock(Attr, String)
Code block (literal) with attributes
RawBlock(Format, String)
BlockQuote(Vec<Block>)
Block quote (list of blocks)
OrderedList(ListAttributes, Vec<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)
Figure(Attr, Caption, Vec<Block>)
Figure, with attributes, caption, list of blocks
Header(Int, Attr, Vec<Inline>)
Header - level (integer) and text (inlines)
HorizontalRule
Table(Attr, Caption, Vec<ColSpec>, TableHead, Vec<TableBody>, TableFoot)
Table, with attributes, caption, column alignments + widths column headers (each a list of rows), body and foot
Div(Attr, Vec<Block>)
Generic block container with attributes
Null
Nothing
Trait Implementations§
source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Block
impl PartialEq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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