Struct piston_meta::meta_rules::Whitespace [] [src]

pub struct Whitespace {
    pub optional: bool,
    pub debug_id: DebugId,
}

Stores information about whitespace.

Fields

Whether the whitespace is optional or required.

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

Methods

impl Whitespace
[src]

Parse whitespace. If whitespace is required and no whitespace is found, an error will be reported.

Trait Implementations

impl Clone for Whitespace
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Whitespace
[src]

Formats the value using the given formatter.

impl PartialEq for Whitespace
[src]

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

This method tests for !=.