pub struct Num {
pub inner: NumValue,
pub loc: (Loc, Loc),
}Expand description
Numeric literal with its parsed value and source span.
Fields§
§inner: NumValueParsed numeric value.
loc: (Loc, Loc)Source span of the literal.
Trait Implementations§
Source§impl<'input> TryFrom<(&'input str, (usize, usize), bool)> for Num
§Panics
float parse won’t fail /-?(\d+)?.\d+/
https://doc.rust-lang.org/std/primitive.f64.html#method.from_str
impl<'input> TryFrom<(&'input str, (usize, usize), bool)> for Num
§Panics
float parse won’t fail /-?(\d+)?.\d+/ https://doc.rust-lang.org/std/primitive.f64.html#method.from_str
impl StructuralPartialEq for Num
Auto Trait Implementations§
impl Freeze for Num
impl RefUnwindSafe for Num
impl Send for Num
impl Sync for Num
impl Unpin for Num
impl UnsafeUnpin for Num
impl UnwindSafe for Num
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