pub enum NodeKind {
Root,
Block,
Head,
Body,
Tail,
Element,
Text,
Comment,
Table,
Equation,
}Expand description
Renderer-neutral node role copied from the libmandoc syntax tree.
Variants§
Root
Synthetic root containing the complete syntax tree.
Block
A macro block, such as a section or display.
Head
The heading or term portion of a block.
Body
The principal content portion of a block.
Tail
The trailing portion of a block, when the macro defines one.
Element
A leaf-level semantic macro invocation.
Text
Literal source text after roff escape processing.
Comment
A source comment retained by libmandoc.
Table
A tbl(7) table node.
Equation
An eqn(7) equation node.
Trait Implementations§
impl Copy for NodeKind
Source§impl<'de> Deserialize<'de> for NodeKind
impl<'de> Deserialize<'de> for NodeKind
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
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze 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
Mutably borrows from an owned value. Read more