pub enum Block {
Paragraph(Vec<Inline>),
Heading {
level: u8,
content: Vec<Inline>,
},
CodeBlock {
language: Option<String>,
content: String,
},
Blockquote(Vec<Block>),
List {
ordered: bool,
items: Vec<Block>,
},
TaskList {
items: Vec<(bool, Block)>,
},
Table {
headers: Vec<Inline>,
rows: Vec<Vec<Inline>>,
alignments: Vec<Alignment>,
},
Image {
alt: String,
url: String,
},
HorizontalRule,
BlockList(Vec<Block>),
}Expand description
Document-level nodes describing paragraphs, lists, and other structural items.
Variants§
Paragraph(Vec<Inline>)
A paragraph of inline elements.
Heading
A heading with a specific level and inline content.
CodeBlock
A fenced code block with an optional language tag.
Blockquote(Vec<Block>)
A nested collection of quoted blocks.
List
An ordered or unordered list of blocks.
TaskList
A list of checkbox items paired with their content.
Table
A table with headers, rows, and column alignments.
Image
A standalone image block.
HorizontalRule
A thematic break separating sections.
BlockList(Vec<Block>)
A container that renders nested blocks in sequence.
Trait Implementations§
Source§impl<__A0, __A1> IntoItems<Block> for (__A0, __A1)
impl<__A0, __A1> IntoItems<Block> for (__A0, __A1)
Source§impl<__A0, __A1, __A2> IntoItems<Block> for (__A0, __A1, __A2)
impl<__A0, __A1, __A2> IntoItems<Block> for (__A0, __A1, __A2)
Source§impl<__A0, __A1, __A2, __A3> IntoItems<Block> for (__A0, __A1, __A2, __A3)
impl<__A0, __A1, __A2, __A3> IntoItems<Block> for (__A0, __A1, __A2, __A3)
Source§impl<__A0, __A1, __A2, __A3, __A4> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4)
impl<__A0, __A1, __A2, __A3, __A4> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4)
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5)
impl<__A0, __A1, __A2, __A3, __A4, __A5> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5)
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6)
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7)
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8)
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9)
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10)
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10, __A11> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10, __A11)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10, __A11> IntoItems<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10, __A11)
Source§impl<__A0, __A1> IntoRows<Block> for (__A0, __A1)
impl<__A0, __A1> IntoRows<Block> for (__A0, __A1)
Source§impl<__A0, __A1, __A2> IntoRows<Block> for (__A0, __A1, __A2)
impl<__A0, __A1, __A2> IntoRows<Block> for (__A0, __A1, __A2)
Source§impl<__A0, __A1, __A2, __A3> IntoRows<Block> for (__A0, __A1, __A2, __A3)
impl<__A0, __A1, __A2, __A3> IntoRows<Block> for (__A0, __A1, __A2, __A3)
type RowIter = Either<<__A0 as IntoItems<Block>>::IntoIter, Either<<__A1 as IntoItems<Block>>::IntoIter, Either<<__A2 as IntoItems<Block>>::IntoIter, <__A3 as IntoItems<Block>>::IntoIter>>>
type Rows = IntoIter<<(__A0, __A1, __A2, __A3) as IntoRows<Block>>::RowIter, 4>
fn into_rows(self) -> Self::Rows
Source§impl<__A0, __A1, __A2, __A3, __A4> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4)
impl<__A0, __A1, __A2, __A3, __A4> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4)
type RowIter = Either<<__A0 as IntoItems<Block>>::IntoIter, Either<<__A1 as IntoItems<Block>>::IntoIter, Either<<__A2 as IntoItems<Block>>::IntoIter, Either<<__A3 as IntoItems<Block>>::IntoIter, <__A4 as IntoItems<Block>>::IntoIter>>>>
type Rows = IntoIter<<(__A0, __A1, __A2, __A3, __A4) as IntoRows<Block>>::RowIter, 5>
fn into_rows(self) -> Self::Rows
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5)
impl<__A0, __A1, __A2, __A3, __A4, __A5> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5)
type RowIter = Either<<__A0 as IntoItems<Block>>::IntoIter, Either<<__A1 as IntoItems<Block>>::IntoIter, Either<<__A2 as IntoItems<Block>>::IntoIter, Either<<__A3 as IntoItems<Block>>::IntoIter, Either<<__A4 as IntoItems<Block>>::IntoIter, <__A5 as IntoItems<Block>>::IntoIter>>>>>
type Rows = IntoIter<<(__A0, __A1, __A2, __A3, __A4, __A5) as IntoRows<Block>>::RowIter, 6>
fn into_rows(self) -> Self::Rows
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6)
type RowIter = Either<<__A0 as IntoItems<Block>>::IntoIter, Either<<__A1 as IntoItems<Block>>::IntoIter, Either<<__A2 as IntoItems<Block>>::IntoIter, Either<<__A3 as IntoItems<Block>>::IntoIter, Either<<__A4 as IntoItems<Block>>::IntoIter, Either<<__A5 as IntoItems<Block>>::IntoIter, <__A6 as IntoItems<Block>>::IntoIter>>>>>>
type Rows = IntoIter<<(__A0, __A1, __A2, __A3, __A4, __A5, __A6) as IntoRows<Block>>::RowIter, 7>
fn into_rows(self) -> Self::Rows
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7)
type RowIter = Either<<__A0 as IntoItems<Block>>::IntoIter, Either<<__A1 as IntoItems<Block>>::IntoIter, Either<<__A2 as IntoItems<Block>>::IntoIter, Either<<__A3 as IntoItems<Block>>::IntoIter, Either<<__A4 as IntoItems<Block>>::IntoIter, Either<<__A5 as IntoItems<Block>>::IntoIter, Either<<__A6 as IntoItems<Block>>::IntoIter, <__A7 as IntoItems<Block>>::IntoIter>>>>>>>
type Rows = IntoIter<<(__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7) as IntoRows<Block>>::RowIter, 8>
fn into_rows(self) -> Self::Rows
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8)
type RowIter = Either<<__A0 as IntoItems<Block>>::IntoIter, Either<<__A1 as IntoItems<Block>>::IntoIter, Either<<__A2 as IntoItems<Block>>::IntoIter, Either<<__A3 as IntoItems<Block>>::IntoIter, Either<<__A4 as IntoItems<Block>>::IntoIter, Either<<__A5 as IntoItems<Block>>::IntoIter, Either<<__A6 as IntoItems<Block>>::IntoIter, Either<<__A7 as IntoItems<Block>>::IntoIter, <__A8 as IntoItems<Block>>::IntoIter>>>>>>>>
type Rows = IntoIter<<(__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8) as IntoRows<Block>>::RowIter, 9>
fn into_rows(self) -> Self::Rows
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9)
type RowIter = Either<<__A0 as IntoItems<Block>>::IntoIter, Either<<__A1 as IntoItems<Block>>::IntoIter, Either<<__A2 as IntoItems<Block>>::IntoIter, Either<<__A3 as IntoItems<Block>>::IntoIter, Either<<__A4 as IntoItems<Block>>::IntoIter, Either<<__A5 as IntoItems<Block>>::IntoIter, Either<<__A6 as IntoItems<Block>>::IntoIter, Either<<__A7 as IntoItems<Block>>::IntoIter, Either<<__A8 as IntoItems<Block>>::IntoIter, <__A9 as IntoItems<Block>>::IntoIter>>>>>>>>>
type Rows = IntoIter<<(__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9) as IntoRows<Block>>::RowIter, 10>
fn into_rows(self) -> Self::Rows
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10)
type RowIter = Either<<__A0 as IntoItems<Block>>::IntoIter, Either<<__A1 as IntoItems<Block>>::IntoIter, Either<<__A2 as IntoItems<Block>>::IntoIter, Either<<__A3 as IntoItems<Block>>::IntoIter, Either<<__A4 as IntoItems<Block>>::IntoIter, Either<<__A5 as IntoItems<Block>>::IntoIter, Either<<__A6 as IntoItems<Block>>::IntoIter, Either<<__A7 as IntoItems<Block>>::IntoIter, Either<<__A8 as IntoItems<Block>>::IntoIter, Either<<__A9 as IntoItems<Block>>::IntoIter, <__A10 as IntoItems<Block>>::IntoIter>>>>>>>>>>
type Rows = IntoIter<<(__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10) as IntoRows<Block>>::RowIter, 11>
fn into_rows(self) -> Self::Rows
Source§impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10, __A11> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10, __A11)
impl<__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10, __A11> IntoRows<Block> for (__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10, __A11)
type RowIter = Either<<__A0 as IntoItems<Block>>::IntoIter, Either<<__A1 as IntoItems<Block>>::IntoIter, Either<<__A2 as IntoItems<Block>>::IntoIter, Either<<__A3 as IntoItems<Block>>::IntoIter, Either<<__A4 as IntoItems<Block>>::IntoIter, Either<<__A5 as IntoItems<Block>>::IntoIter, Either<<__A6 as IntoItems<Block>>::IntoIter, Either<<__A7 as IntoItems<Block>>::IntoIter, Either<<__A8 as IntoItems<Block>>::IntoIter, Either<<__A9 as IntoItems<Block>>::IntoIter, Either<<__A10 as IntoItems<Block>>::IntoIter, <__A11 as IntoItems<Block>>::IntoIter>>>>>>>>>>>
type Rows = IntoIter<<(__A0, __A1, __A2, __A3, __A4, __A5, __A6, __A7, __A8, __A9, __A10, __A11) as IntoRows<Block>>::RowIter, 12>
fn into_rows(self) -> Self::Rows
Source§impl<R: Render> Renderable<R> for Block
impl<R: Render> Renderable<R> for Block
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
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