pub enum Node<'a> {
Show 42 variants
Root(Root<'a>),
Paragraph(Paragraph<'a>),
Heading(Heading<'a>),
ThematicBreak(ThematicBreak<'a>),
Text(Text<'a>),
Emphasis(Emphasis<'a>),
Strong(Strong<'a>),
Break(Break<'a>),
Code(Code<'a>),
InlineCode(InlineCode<'a>),
Blockquote(Blockquote<'a>),
List(List<'a>),
ListItem(ListItem<'a>),
Link(Link<'a>),
Image(Image<'a>),
LinkReference(LinkReference<'a>),
ImageReference(ImageReference<'a>),
Definition(Definition<'a>),
Html(Html<'a>),
Delete(Delete<'a>),
Table(Table<'a>),
TableRow(TableRow<'a>),
TableCell(TableCell<'a>),
FootnoteDefinition(FootnoteDefinition<'a>),
FootnoteReference(FootnoteReference<'a>),
Math(Math<'a>),
InlineMath(InlineMath<'a>),
ContainerDirective(ContainerDirective<'a>),
LeafDirective(LeafDirective<'a>),
TextDirective(TextDirective<'a>),
Yaml(Yaml<'a>),
Toml(Toml<'a>),
Literal(Literal<'a>),
Unknown(Unknown<'a>),
DefList(DefList<'a>),
DefListTerm(DefListTerm<'a>),
DefListDescription(DefListDescription<'a>),
MdxJsxFlowElement(MdxJsxElement<'a, Node<'a>>),
MdxJsxTextElement(MdxJsxElement<'a, Node<'a>>),
MdxFlowExpression(MdxExpression<'a>),
MdxTextExpression(MdxExpression<'a>),
MdxjsEsm(MdxjsEsm<'a>),
}Expand description
An mdast node.
Variants§
Root(Root<'a>)
Paragraph(Paragraph<'a>)
Heading(Heading<'a>)
ThematicBreak(ThematicBreak<'a>)
Text(Text<'a>)
Emphasis(Emphasis<'a>)
Strong(Strong<'a>)
Break(Break<'a>)
Code(Code<'a>)
InlineCode(InlineCode<'a>)
Blockquote(Blockquote<'a>)
List(List<'a>)
ListItem(ListItem<'a>)
Link(Link<'a>)
Image(Image<'a>)
LinkReference(LinkReference<'a>)
ImageReference(ImageReference<'a>)
Definition(Definition<'a>)
Html(Html<'a>)
Delete(Delete<'a>)
Table(Table<'a>)
TableRow(TableRow<'a>)
TableCell(TableCell<'a>)
FootnoteDefinition(FootnoteDefinition<'a>)
FootnoteReference(FootnoteReference<'a>)
Math(Math<'a>)
InlineMath(InlineMath<'a>)
ContainerDirective(ContainerDirective<'a>)
LeafDirective(LeafDirective<'a>)
TextDirective(TextDirective<'a>)
Yaml(Yaml<'a>)
Toml(Toml<'a>)
Literal(Literal<'a>)
Unknown(Unknown<'a>)
DefList(DefList<'a>)
DefListTerm(DefListTerm<'a>)
DefListDescription(DefListDescription<'a>)
MdxJsxFlowElement(MdxJsxElement<'a, Node<'a>>)
MdxJsxTextElement(MdxJsxElement<'a, Node<'a>>)
MdxFlowExpression(MdxExpression<'a>)
MdxTextExpression(MdxExpression<'a>)
MdxjsEsm(MdxjsEsm<'a>)
Implementations§
Source§impl<'a> Node<'a>
impl<'a> Node<'a>
Sourcepub fn children(&self) -> Option<&ArenaVec<'a, Node<'a>>>
pub fn children(&self) -> Option<&ArenaVec<'a, Node<'a>>>
The node’s children, when it is a parent.
Sourcepub fn children_mut(&mut self) -> Option<&mut ArenaVec<'a, Node<'a>>>
pub fn children_mut(&mut self) -> Option<&mut ArenaVec<'a, Node<'a>>>
The node’s children, mutably, when it is a parent.
pub fn position(&self) -> Option<&Position<'a>>
pub fn position_mut(&mut self) -> &mut Option<Position<'a>>
Trait Implementations§
impl<'a> StructuralPartialEq for Node<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Node<'a>
impl<'a> !Send for Node<'a>
impl<'a> !Sync for Node<'a>
impl<'a> !UnwindSafe for Node<'a>
impl<'a> Freeze for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnsafeUnpin for Node<'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