[go: up one dir, main page]

Struct piston_meta::Text [] [src]

pub struct Text {
    pub allow_empty: bool,
    pub property: Option<Rc<String>>,
    pub debug_id: DebugId,
}

Stores information about text.

Fields

allow_empty: bool

Whether to allow empty string.

property: Option<Rc<String>>

Which property to set if text is read.

debug_id: DebugId

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

Methods

impl Text
[src]

fn parse<M>(&self, meta_reader: &mut M, state: &M::State, chars: &[char], offset: usize) -> ParseResult<M::State> where M: MetaReader

Parses text.