pub enum NumberLiteral {
Int(i32),
Float(f64),
}Expand description
The value of a numeric literal.
Variants§
Int(i32)
Integer that fits in i32 (and in 53 bits of precision): kept exact.
Float(f64)
Any other double.
Trait Implementations§
Source§impl Clone for NumberLiteral
impl Clone for NumberLiteral
Source§impl Debug for NumberLiteral
impl Debug for NumberLiteral
Source§impl PartialEq for NumberLiteral
impl PartialEq for NumberLiteral
impl StructuralPartialEq for NumberLiteral
Auto Trait Implementations§
impl Forget for NumberLiteral
impl Freeze for NumberLiteral
impl Move for NumberLiteral
impl RefUnwindSafe for NumberLiteral
impl Send for NumberLiteral
impl Sync for NumberLiteral
impl Unpin for NumberLiteral
impl UnsafeUnpin for NumberLiteral
impl UnwindSafe for NumberLiteral
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