[][src]Enum boa::syntax::ast::token::NumericLiteral

pub enum NumericLiteral {
    Rational(f64),
    Integer(i32),
    BigInt(BigInt),
}

Represents the type differenct types of numeric literals.

Variants

Rational(f64)

A floating point number

Integer(i32)

An integer

BigInt(BigInt)

Trait Implementations

impl Clone for NumericLiteral[src]

impl Debug for NumericLiteral[src]

impl From<BigInt> for NumericLiteral[src]

impl From<f64> for NumericLiteral[src]

impl From<i32> for NumericLiteral[src]

impl PartialEq<NumericLiteral> for NumericLiteral[src]

impl StructuralPartialEq for NumericLiteral[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>,