[][src]Struct ress::tokens::Number

pub struct Number<T>(_);

A JS number literal. There are 4 kinds of number literals allowed in JS.

  • Decimal Literals - This includes integers and decimals with optional exponent notation
  • Hexadecimal Literals - These begin with 0x and consist of numbers 0-9 and letters A-F (case insensitive)
  • Octal Literals - These being with 0o and consist of numbers 0-7
  • Binary Literals - These begin with 0b and consist of numbers 0 and 1

Trait Implementations

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

impl NumberExt for Number<String>[src]

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

impl<T: Clone> Clone for Number<T>[src]

impl<T: PartialEq> PartialEq<Number<T>> for Number<T>[src]

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

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

impl<T: Debug> Debug for Number<T>[src]

Auto Trait Implementations

impl<T> Send for Number<T> where
    T: Send

impl<T> Sync for Number<T> where
    T: Sync

impl<T> Unpin for Number<T> where
    T: Unpin

impl<T> UnwindSafe for Number<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Number<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]