Enum gutenberg_post_parser::ast::Node[][src]

pub enum Node<'a> {
    Block {
        name: (Input<'a>, Input<'a>),
        attributes: Option<Input<'a>>,
        children: Vec<Node<'a>>,
    },
    Phrase(Input<'a>),
}

Represent a node in an AST.

Variants

A block is the elementary component of the post format.

Fields of Block

The fully-qualified block name, where the left part of the pair represents the namespace, and the right part of the pair represents the block name.

A block can have attributes, just like an HTML element can have attributes. Attributes are encoded as a JSON string.

A block can have inner blocks or phrases.

Anything that is not a block.

Trait Implementations

impl<'a> PartialEq for Node<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Debug for Node<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for Node<'a>

impl<'a> Sync for Node<'a>