Struct piston_meta::meta_rules::Number [] [src]

pub struct Number {
    pub property: Option<Rc<String>>,
    pub debug_id: DebugId,
    pub allow_underscore: bool,
}

Contains information about number.

Fields

property: Option<Rc<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, chars: &[char], offset: usize) -> 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]

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

Formats the value using the given formatter.

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