pub enum Block {
Paragraph(Vec<Inline>),
Heading {
level: u8,
content: Vec<Inline>,
},
Quote(Vec<Block>),
List {
start: Option<u64>,
tight: bool,
items: Vec<ListItem>,
},
CodeBlock {
language: Option<String>,
text: String,
},
Table {
alignments: Vec<Alignment>,
head: Vec<Cell>,
rows: Vec<Vec<Cell>>,
},
Rule,
}Expand description
A block of a document.
Variants§
Paragraph(Vec<Inline>)
Heading
level is 1 to 6.
Quote(Vec<Block>)
List
start is the first number of an ordered list, None for a bulleted one. A tight list
is one whose items are not separated by blank lines.
CodeBlock
language is the first word of a fenced block’s info string; text has no final
line break.
Table
Every row, head included, has one cell per entry of alignments.
Rule
Trait Implementations§
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Forget for Block
impl Freeze for Blockwhere
*const u8 is !null: Freeze,
PhantomData<Inline>: Freeze,
PhantomData<Block>: Freeze,
PhantomData<ListItem>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Alignment>: Freeze,
PhantomData<Cell>: Freeze,
PhantomData<Vec<Cell>>: Freeze,
impl Move for Block
impl RefUnwindSafe for Block
impl Send for Blockwhere
RawVecInner: Send,
impl Sync for Blockwhere
RawVecInner: Sync,
impl Unpin for Block
impl UnsafeUnpin for Blockwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Inline>: UnsafeUnpin,
PhantomData<Block>: UnsafeUnpin,
PhantomData<ListItem>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Alignment>: UnsafeUnpin,
PhantomData<Cell>: UnsafeUnpin,
PhantomData<Vec<Cell>>: UnsafeUnpin,
impl UnwindSafe for Blockwhere
RawVecInner: UnwindSafe,
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