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
Nan
Fields
negative: bool
Whether or not this is a negative NaN
or not.
A float NaN
representation
Inf
Fields
negative: bool
An float infinite representation,
Val
Fields
hex: bool
Whether or not the integral
and decimal
are specified in hex
A parsed and separated floating point value
Trait Implementations
impl<'a> Eq for FloatVal<'a>
impl<'a> StructuralEq for FloatVal<'a>
impl<'a> StructuralPartialEq for FloatVal<'a>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more