Struct piston_meta::meta_rules::Optional [] [src]

pub struct Optional {
    pub rule: Rule,
    pub debug_id: DebugId,
}

Stores information about optional.

Fields

The optional rule.

A debug id to track down the rule generating an error.

Methods

impl Optional
[src]

Parse optional. Returns the old state if any sub rule fails.

Trait Implementations

impl Clone for Optional
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Optional
[src]

Formats the value using the given formatter.

impl PartialEq for Optional
[src]

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

This method tests for !=.