#[non_exhaustive]pub enum KindData {
Show 23 variants
Document(Document),
Paragraph(Paragraph),
Heading(Heading),
ThematicBreak(ThematicBreak),
CodeBlock(CodeBlock),
Blockquote(Blockquote),
List(List),
ListItem(ListItem),
HtmlBlock(HtmlBlock),
Text(Text),
CodeSpan(CodeSpan),
Emphasis(Emphasis),
Link(Link),
Image(Image),
RawHtml(RawHtml),
LinkReferenceDefinition(LinkReferenceDefinition),
Table(Table),
TableHeader(TableHeader),
TableBody(TableBody),
TableRow(TableRow),
TableCell(TableCell),
Strikethrough(Strikethrough),
Extension(Box<dyn ExtensionData>),
}Expand description
Represents the data of a node in the document. This is an enum that can hold different types of node data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Document(Document)
Paragraph(Paragraph)
Heading(Heading)
ThematicBreak(ThematicBreak)
CodeBlock(CodeBlock)
Blockquote(Blockquote)
List(List)
ListItem(ListItem)
HtmlBlock(HtmlBlock)
Text(Text)
CodeSpan(CodeSpan)
Emphasis(Emphasis)
Link(Link)
Image(Image)
RawHtml(RawHtml)
LinkReferenceDefinition(LinkReferenceDefinition)
Table(Table)
TableHeader(TableHeader)
TableBody(TableBody)
TableRow(TableRow)
TableCell(TableCell)
Strikethrough(Strikethrough)
Extension(Box<dyn ExtensionData>)
Implementations§
Trait Implementations§
Source§impl From<Blockquote> for KindData
impl From<Blockquote> for KindData
Source§fn from(data: Blockquote) -> Self
fn from(data: Blockquote) -> Self
Converts to this type from the input type.
Source§impl From<LinkReferenceDefinition> for KindData
impl From<LinkReferenceDefinition> for KindData
Source§fn from(data: LinkReferenceDefinition) -> Self
fn from(data: LinkReferenceDefinition) -> Self
Converts to this type from the input type.
Source§impl From<Strikethrough> for KindData
impl From<Strikethrough> for KindData
Source§fn from(e: Strikethrough) -> Self
fn from(e: Strikethrough) -> Self
Converts to this type from the input type.
Source§impl From<TableHeader> for KindData
impl From<TableHeader> for KindData
Source§fn from(e: TableHeader) -> Self
fn from(e: TableHeader) -> Self
Converts to this type from the input type.
Source§impl From<ThematicBreak> for KindData
impl From<ThematicBreak> for KindData
Source§fn from(data: ThematicBreak) -> Self
fn from(data: ThematicBreak) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KindData
impl !RefUnwindSafe for KindData
impl !Send for KindData
impl !Sync for KindData
impl Unpin for KindData
impl UnsafeUnpin for KindData
impl !UnwindSafe for KindData
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