Struct bnf::Production [] [src]

pub struct Production {
    pub lhs: Term,
    // some fields omitted
}

A Production is comprised of any number of Expressions

Fields

Methods

impl Production
[src]

[src]

Construct a new Production

[src]

Construct an Production from Expressions

[src]

[src]

Add Expression to the Production's right hand side

[src]

Remove Expression from the Production's right hand side

If interested if Expression was removed, then inspect the returned Option.

[src]

Get iterator of the Production's right hand side Expressions

[src]

Get mutable iterator of the Production's right hand side Expressions

Trait Implementations

impl PartialEq for Production
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Production
[src]

[src]

Formats the value using the given formatter.

impl Clone for Production
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Production
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Production
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more