Struct ungrammar::NodeData[][src]

pub struct NodeData {
    pub name: String,
    pub rule: Rule,
}
Expand description

Data about a node.

Fields

name: String

The name of the node.

In the rule A = 'b' | 'c', this is "A".

rule: Rule

The rule for this node.

In the rule A = 'b' | 'c', this represents 'b' | 'c'.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.