pub enum Node {
Heading {
level: HeadingLevel,
text: Text,
},
Paragraph {
text: Text,
},
BlockQuote {
kind: Option<BlockQuoteKind>,
nodes: Vec<Node>,
},
CodeBlock {
lang: Option<String>,
text: Text,
},
Item {
kind: Option<ItemKind>,
text: Text,
},
}Expand description
The Markdown AST node enumeration.
Variants§
Heading
A heading node that represents different heading levels.
The level is controlled with the HeadingLevel definition.
Paragraph
BlockQuote
A block quote node that represents different quote block variants including callout blocks.
The variant is controlled with the BlockQuoteKind definition. When BlockQuoteKind
is None the block quote should be interpreted as a regular block quote:
"> Block quote".
CodeBlock
A fenced code block, optionally with a language identifier.
Item
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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