#[repr(u8)]pub enum NoteElementType {
Show 15 variants
Root,
Heading,
List,
ListItem,
Table,
TableRow,
CodeBlock,
Paragraph,
Blockquote,
HorizontalRule,
Link,
Image,
Html,
Error,
Token(NoteTokenType),
}Expand description
Element type for Notedown AST
Variants§
Root
Root node of the document
Heading
Heading node
List
List container
ListItem
Single list item
Table
Table container
TableRow
Single table row
CodeBlock
Code block node
Paragraph
Paragraph of text
Blockquote
Blockquote container
HorizontalRule
Horizontal rule separator
Link
Link container
Image
Image container
Html
HTML content
Error
Error node
Token(NoteTokenType)
Token-derived elements
Trait Implementations§
Source§impl Clone for NoteElementType
impl Clone for NoteElementType
Source§fn clone(&self) -> NoteElementType
fn clone(&self) -> NoteElementType
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 NoteElementType
impl Debug for NoteElementType
Source§impl<'de> Deserialize<'de> for NoteElementType
impl<'de> Deserialize<'de> for NoteElementType
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 NoteElementType
impl ElementType for NoteElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_root(&self) -> bool
fn is_root(&self) -> bool
Returns true if this element represents the root of the parsed tree.
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<NoteTokenType> for NoteElementType
impl From<NoteTokenType> for NoteElementType
Source§fn from(token: NoteTokenType) -> Self
fn from(token: NoteTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for NoteElementType
impl Hash for NoteElementType
Source§impl PartialEq for NoteElementType
impl PartialEq for NoteElementType
Source§impl Serialize for NoteElementType
impl Serialize for NoteElementType
impl Copy for NoteElementType
impl Eq for NoteElementType
impl StructuralPartialEq for NoteElementType
Auto Trait Implementations§
impl Freeze for NoteElementType
impl RefUnwindSafe for NoteElementType
impl Send for NoteElementType
impl Sync for NoteElementType
impl Unpin for NoteElementType
impl UnsafeUnpin for NoteElementType
impl UnwindSafe for NoteElementType
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