pub enum NodeType {
Show 24 variants
Document,
BlockQuote,
List,
Item,
Paragraph,
Heading,
ThematicBreak,
CodeBlock,
HtmlBlock,
Table,
TableRow,
TableCell,
Text,
Softbreak,
Linebreak,
Code,
HtmlInline,
Emph,
Strong,
Link,
Image,
Del,
LinkReference,
ImageReference,
}Expand description
The node kinds. String-valued in the other two runtimes so that debug
output and the AST projection read the same; NodeType::as_str is
the same spelling here.
Variants§
Document
BlockQuote
List
Item
Paragraph
Heading
ThematicBreak
CodeBlock
HtmlBlock
Table
TableRow
TableCell
Text
Softbreak
Linebreak
Code
HtmlInline
Emph
Strong
Link
Image
Del
LinkReference
ImageReference
Implementations§
Trait Implementations§
impl Copy for NodeType
impl Eq for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations§
impl Forget for NodeType
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnsafeUnpin for NodeType
impl UnwindSafe for NodeType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.