#[repr(u8)]pub enum NodeKind {
Show 41 variants
Blockquote = 0,
Break = 1,
Callout = 2,
Embed = 3,
Definition = 4,
Delete = 5,
H1 = 6,
H2 = 7,
H3 = 8,
H4 = 9,
H5 = 10,
H6 = 11,
Emphasis = 12,
Footnote = 13,
FootnoteRef = 14,
Html = 15,
Yaml = 16,
Toml = 17,
Image = 18,
ImageRef = 19,
CodeInline = 20,
MathInline = 21,
Link = 22,
LinkRef = 23,
WikiLink = 24,
Math = 25,
List = 26,
TableAlign = 27,
TableRow = 28,
TableCell = 29,
Code = 30,
Strong = 31,
HorizontalRule = 32,
MdxFlowExpression = 33,
MdxJsxFlowElement = 34,
MdxJsxTextElement = 35,
MdxTextExpression = 36,
MdxJsEsm = 37,
Text = 38,
Fragment = 39,
Empty = 40,
}Expand description
The kind of a Node. Headings are split by depth, so every Node has exactly one kind.
Variants§
Blockquote = 0
A block quote.
Break = 1
A hard line break.
Callout = 2
An Obsidian-style callout.
Embed = 3
An Obsidian-style file embed.
Definition = 4
A link reference definition.
Delete = 5
Strikethrough text.
H1 = 6
A heading of depth 1.
H2 = 7
A heading of depth 2.
H3 = 8
A heading of depth 3.
H4 = 9
A heading of depth 4.
H5 = 10
A heading of depth 5.
H6 = 11
A heading of depth 6.
Emphasis = 12
Emphasized text.
Footnote = 13
A footnote definition.
FootnoteRef = 14
A footnote reference.
Html = 15
Raw HTML.
Yaml = 16
YAML front matter.
Toml = 17
TOML front matter.
Image = 18
An inline image.
ImageRef = 19
A reference-style image.
CodeInline = 20
Inline code.
MathInline = 21
Inline math.
Link = 22
An inline link.
LinkRef = 23
A reference-style link.
WikiLink = 24
An Obsidian-style wikilink.
Math = 25
A math block.
List = 26
A list item.
TableAlign = 27
The delimiter row of a table, giving the column alignments.
TableRow = 28
A table row.
TableCell = 29
A table cell.
Code = 30
A code block.
Strong = 31
Strongly emphasized text.
HorizontalRule = 32
A thematic break.
MdxFlowExpression = 33
A block-level MDX expression.
MdxJsxFlowElement = 34
A block-level JSX element.
MdxJsxTextElement = 35
An inline JSX element.
MdxTextExpression = 36
An inline MDX expression.
MdxJsEsm = 37
MDX ESM import or export.
Text = 38
Plain text.
Fragment = 39
A sequence of nodes with no wrapper.
Empty = 40
An empty node.
Implementations§
Trait Implementations§
impl Copy for NodeKind
impl Eq for NodeKind
Source§impl Ord for NodeKind
impl Ord for NodeKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for NodeKind
impl PartialOrd for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Forget for NodeKind
impl Freeze for NodeKind
impl Move for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more