Struct piston_meta::meta_rules::Whitespace
[−]
[src]
pub struct Whitespace {
pub optional: bool,
pub debug_id: DebugId,
}Stores information about whitespace.
Fields
optional: bool
Whether the whitespace is optional or required.
debug_id: DebugId
A debug id to track down the rule generating an error.
Methods
impl Whitespace[src]
fn parse(&self, read_token: &ReadToken) -> Result<Range, Range<ParseError>>
Parse whitespace. If whitespace is required and no whitespace is found, an error will be reported.
Trait Implementations
impl Clone for Whitespace[src]
fn clone(&self) -> Whitespace
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for Whitespace[src]
impl PartialEq for Whitespace[src]
fn eq(&self, __arg_0: &Whitespace) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Whitespace) -> bool
This method tests for !=.