Struct piston_meta::meta_rules::Text
[−]
[src]
pub struct Text {
pub allow_empty: bool,
pub property: Option<Arc<String>>,
pub debug_id: DebugId,
}Stores information about text.
Fields
allow_empty: bool
Whether to allow empty string.
property: Option<Arc<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(
&self,
tokens: &mut Vec<Range<MetaData>>,
state: &TokenizerState,
read_token: &ReadToken
) -> ParseResult<TokenizerState>
&self,
tokens: &mut Vec<Range<MetaData>>,
state: &TokenizerState,
read_token: &ReadToken
) -> ParseResult<TokenizerState>
Parses text.
Trait Implementations
impl Clone for Text[src]
fn clone(&self) -> Text
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