pub enum Block<'a> {
}Expand description
Block-level AST nodes.
Blocks are the primary structural elements of a document. Each variant represents a distinct block type with its own structure.
Variants§
Heading(Heading<'a>)
Section heading (levels 1-6).
Paragraph(Paragraph<'a>)
Text paragraph with inline formatting.
List(List<'a>)
Ordered or unordered list.
CodeBlock(CodeBlock<'a>)
Fenced code block with optional language.
Callout(Callout<'a>)
Callout/admonition block (note, warning, etc.).
Quote(Quote<'a>)
Block quotation.
Figure(Figure<'a>)
Figure with image and caption.
Table(Table<'a>)
Data table with rows and cells.
Footnotes(Footnotes<'a>)
Footnote definitions.
Math(MathBlock<'a>)
Mathematical equation (inline or display).
ThematicBreak(Span)
Horizontal rule / thematic break.
Html(HtmlBlock<'a>)
Raw HTML content (when HTML module enabled).
Raw(RawBlock<'a>)
Unparsed/unknown block content (error recovery).
Trait Implementations§
impl<'a> StructuralPartialEq for Block<'a>
Auto Trait Implementations§
impl<'a> Freeze for Block<'a>
impl<'a> RefUnwindSafe for Block<'a>
impl<'a> Send for Block<'a>
impl<'a> Sync for Block<'a>
impl<'a> Unpin for Block<'a>
impl<'a> UnwindSafe for Block<'a>
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