#[repr(u16)]pub enum MarkdownElementType {
Show 59 variants
Root = 0,
Paragraph = 1,
Table = 2,
Heading1 = 3,
Heading2 = 4,
Heading3 = 5,
Heading4 = 6,
Heading5 = 7,
Heading6 = 8,
Blockquote = 9,
CodeBlock = 10,
List = 11,
ListItem = 12,
HorizontalRule = 13,
MathBlock = 14,
FrontMatter = 15,
FootnoteDefinition = 16,
Text = 17,
Whitespace = 18,
Newline = 19,
HeadingText = 20,
Emphasis = 21,
Strong = 22,
Strikethrough = 23,
InlineCode = 24,
CodeFence = 25,
CodeLanguage = 26,
Link = 27,
LinkText = 28,
LinkUrl = 29,
LinkTitle = 30,
Image = 31,
ImageAlt = 32,
ImageUrl = 33,
ImageTitle = 34,
UnorderedList = 35,
OrderedList = 36,
ListMarker = 37,
TaskList = 38,
TaskMarker = 39,
BlockquoteMarker = 40,
TableRow = 41,
TableCell = 42,
TableHeader = 43,
TableSeparator = 44,
TableAlignment = 45,
MathInline = 46,
FootnoteReference = 47,
DefinitionList = 48,
DefinitionTerm = 49,
DefinitionDescription = 50,
Superscript = 51,
Subscript = 52,
Abbreviation = 53,
HtmlTag = 54,
HtmlComment = 55,
XmlTag = 56,
XmlComment = 57,
Error = 58,
}Variants§
Root = 0
Paragraph = 1
Table = 2
Heading1 = 3
Heading2 = 4
Heading3 = 5
Heading4 = 6
Heading5 = 7
Heading6 = 8
Blockquote = 9
CodeBlock = 10
List = 11
ListItem = 12
HorizontalRule = 13
MathBlock = 14
FrontMatter = 15
FootnoteDefinition = 16
Text = 17
Whitespace = 18
Newline = 19
HeadingText = 20
Emphasis = 21
Strong = 22
Strikethrough = 23
InlineCode = 24
CodeFence = 25
CodeLanguage = 26
Link = 27
LinkText = 28
LinkUrl = 29
LinkTitle = 30
Image = 31
ImageAlt = 32
ImageUrl = 33
ImageTitle = 34
UnorderedList = 35
OrderedList = 36
ListMarker = 37
TaskList = 38
TaskMarker = 39
BlockquoteMarker = 40
TableRow = 41
TableCell = 42
TableHeader = 43
TableSeparator = 44
TableAlignment = 45
MathInline = 46
FootnoteReference = 47
DefinitionList = 48
DefinitionTerm = 49
DefinitionDescription = 50
Superscript = 51
Subscript = 52
Abbreviation = 53
HtmlTag = 54
HtmlComment = 55
XmlTag = 56
XmlComment = 57
Error = 58
Trait Implementations§
Source§impl Clone for MarkdownElementType
impl Clone for MarkdownElementType
Source§fn clone(&self) -> MarkdownElementType
fn clone(&self) -> MarkdownElementType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarkdownElementType
impl Debug for MarkdownElementType
Source§impl<'de> Deserialize<'de> for MarkdownElementType
impl<'de> Deserialize<'de> for MarkdownElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for MarkdownElementType
impl ElementType for MarkdownElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<MarkdownTokenType> for MarkdownElementType
impl From<MarkdownTokenType> for MarkdownElementType
Source§fn from(token: MarkdownTokenType) -> Self
fn from(token: MarkdownTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for MarkdownElementType
impl Hash for MarkdownElementType
Source§impl PartialEq for MarkdownElementType
impl PartialEq for MarkdownElementType
Source§impl Serialize for MarkdownElementType
impl Serialize for MarkdownElementType
impl Copy for MarkdownElementType
impl Eq for MarkdownElementType
impl StructuralPartialEq for MarkdownElementType
Auto Trait Implementations§
impl Freeze for MarkdownElementType
impl RefUnwindSafe for MarkdownElementType
impl Send for MarkdownElementType
impl Sync for MarkdownElementType
impl Unpin for MarkdownElementType
impl UnwindSafe for MarkdownElementType
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