pub struct Number<'a> {
pub value: f64,
pub integer: bool,
pub repr: &'a str,
}Expand description
A <number-token>’s value, and the text it was written as.
Fields§
§value: f64§integer: boolThe type flag: “integer” (true) or “number”.
repr: &'a strThe digits as written, sign and exponent included: +.5e3.
Implementations§
Trait Implementations§
impl<'a> Copy for Number<'a>
impl<'a> StructuralPartialEq for Number<'a>
Auto Trait Implementations§
impl<'a> Forget for Number<'a>
impl<'a> Freeze for Number<'a>
impl<'a> Move for Number<'a>
impl<'a> RefUnwindSafe for Number<'a>
impl<'a> Send for Number<'a>
impl<'a> Sync for Number<'a>
impl<'a> Unpin for Number<'a>
impl<'a> UnsafeUnpin for Number<'a>
impl<'a> UnwindSafe for Number<'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