#[repr(C)]pub struct NumericLiteral<'gc> {
pub metadata: NodeMetadata<'gc>,
pub value: Cell<f64>,
}Expand description
The NumericLiteral AST node.
Fields§
§metadata: NodeMetadata<'gc>Source range, debug location, paren count, and node id.
value: Cell<f64>ESTree value property.
Implementations§
Source§impl<'gc> NumericLiteral<'gc>
impl<'gc> NumericLiteral<'gc>
Sourcepub fn new(metadata: NodeMetadata<'gc>, value: f64) -> Self
pub fn new(metadata: NodeMetadata<'gc>, value: f64) -> Self
Build NumericLiteral from its metadata and ESTree.def fields.
Trait Implementations§
Auto Trait Implementations§
impl<'gc> !Freeze for NumericLiteral<'gc>
impl<'gc> !RefUnwindSafe for NumericLiteral<'gc>
impl<'gc> !Send for NumericLiteral<'gc>
impl<'gc> !Sync for NumericLiteral<'gc>
impl<'gc> !UnwindSafe for NumericLiteral<'gc>
impl<'gc> Unpin for NumericLiteral<'gc>
impl<'gc> UnsafeUnpin for NumericLiteral<'gc>
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