[][src]Enum wast::lexer::FloatVal

pub enum FloatVal<'a> {
    Nan {
        val: Option<u64>,
        negative: bool,
    },
    Inf {
        negative: bool,
    },
    Val {
        hex: bool,
        integral: Cow<'a, str>,
        decimal: Option<Cow<'a, str>>,
        exponent: Option<Cow<'a, str>>,
    },
}

Possible parsed float values

Variants

Nan

A float NaN representation

Fields of Nan

val: Option<u64>

The specific bits to encode for this float, optionally

negative: bool

Whether or not this is a negative NaN or not.

Inf

An float infinite representation,

Fields of Inf

negative: bool
Val

A parsed and separated floating point value

Fields of Val

hex: bool

Whether or not the integral and decimal are specified in hex

integral: Cow<'a, str>

The float parts before the .

decimal: Option<Cow<'a, str>>

The float parts after the .

exponent: Option<Cow<'a, str>>

The exponent to multiple this integral.decimal portion of the float by. If hex is true this is 2^exponent and otherwise it's 10^exponent

Trait Implementations

impl<'a> Debug for FloatVal<'a>[src]

impl<'a> PartialEq<FloatVal<'a>> for FloatVal<'a>[src]

impl<'a> StructuralPartialEq for FloatVal<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for FloatVal<'a>

impl<'a> Send for FloatVal<'a>

impl<'a> Sync for FloatVal<'a>

impl<'a> Unpin for FloatVal<'a>

impl<'a> UnwindSafe for FloatVal<'a>

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, 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.