Struct piston_meta::UntilAny [] [src]

pub struct UntilAny {
    pub any_characters: Rc<String>,
    pub optional: bool,
    pub property: Option<Rc<String>>,
    pub debug_id: DebugId,
}

Stores information about reading until whitespace or any of some character.

Fields

any_characters: Rc<String>

The characters to stop at.

optional: bool

Whether empty data is accepted or not.

property: Option<Rc<String>>

The property to store read text.

debug_id: DebugId

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

Methods

impl UntilAny
[src]

fn parse(&self, tokenizer: &mut Tokenizer, state: &TokenizerState, chars: &[char], offset: usize) -> ParseResult<TokenizerState>

Parses until whitespace or any specified characters.

Trait Implementations

impl PartialEq for UntilAny
[src]

fn eq(&self, __arg_0: &UntilAny) -> bool

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

fn ne(&self, __arg_0: &UntilAny) -> bool

This method tests for !=.

impl Debug for UntilAny
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for UntilAny
[src]

fn clone(&self) -> UntilAny

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