Enum wast::lexer::FloatVal [−][src]
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,