Struct piston_meta::meta_rules::Number
[−]
[src]
pub struct Number { pub property: Option<Arc<String>>, pub debug_id: DebugId, pub allow_underscore: bool, }
Contains information about number.
Fields
property: Option<Arc<String>>
The property to set.
debug_id: DebugId
A debug id to track down the rule generating an error.
allow_underscore: bool
Whether underscore is allowed as visible separator.
Methods
impl Number
[src]
fn parse(&self, tokens: &mut Vec<Range<MetaData>>, state: &TokenizerState, read_token: &ReadToken) -> ParseResult<TokenizerState>
Parses number.
Trait Implementations
impl PartialEq for Number
[src]
fn eq(&self, __arg_0: &Number) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Number) -> bool
This method tests for !=
.
impl Debug for Number
[src]
impl Clone for Number
[src]
fn clone(&self) -> Number
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