pub enum Float<'a> {
Nan {
val: Option<Cow<'a, str>>,
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
A float NaN
representation
Fields
Inf
An float infinite representation,
Val
A parsed and separated floating point value
Fields
Trait Implementations§
source§impl<'a> PartialEq for Float<'a>
impl<'a> PartialEq for Float<'a>
impl<'a> Eq for Float<'a>
impl<'a> StructuralPartialEq for Float<'a>
Auto Trait Implementations§
impl<'a> Freeze for Float<'a>
impl<'a> RefUnwindSafe for Float<'a>
impl<'a> Send for Float<'a>
impl<'a> Sync for Float<'a>
impl<'a> Unpin for Float<'a>
impl<'a> UnwindSafe for Float<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more