[][src]Trait ress::tokens::NumberExt

pub trait NumberExt {
    fn kind(&self) -> NumberKind;
fn is_hex(&self) -> bool;
fn is_bin(&self) -> bool;
fn is_oct(&self) -> bool;
fn is_dec(&self) -> bool;
fn has_exponent(&self) -> bool; }

Extension methods for allowing Number to work with both &str and String

Required methods

fn kind(&self) -> NumberKind

fn is_hex(&self) -> bool

fn is_bin(&self) -> bool

fn is_oct(&self) -> bool

fn is_dec(&self) -> bool

fn has_exponent(&self) -> bool

Loading content...

Implementors

impl NumberExt for Number<String>[src]

impl<'a> NumberExt for Number<&'a str>[src]

Loading content...