pub enum JsLit {
Num(f64),
BigInt(i64),
Str(String),
Bool(bool),
Null,
Undefined,
}Expand description
JavaScript literal values.
Variants§
Num(f64)
Floating-point number literal: 1.0, 42, -3.14
BigInt(i64)
BigInt literal for Nat: 0n, 42n
Str(String)
String literal: "hello"
Bool(bool)
Boolean literal: true or false
Null
null literal
Undefined
undefined literal
Trait Implementations§
impl StructuralPartialEq for JsLit
Auto Trait Implementations§
impl Freeze for JsLit
impl RefUnwindSafe for JsLit
impl Send for JsLit
impl Sync for JsLit
impl Unpin for JsLit
impl UnsafeUnpin for JsLit
impl UnwindSafe for JsLit
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