Enum wast::lexer::FloatVal [−][src]
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>>,
},
}
Expand description
Possible parsed float values
Variants
A float NaN
representation
Fields of Nan
An float infinite representation,
Fields of Inf
negative: bool
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