pub enum Const {
String(String),
RegExp(String, bool, bool),
Num(f64),
Int(i32),
Bool(bool),
Null,
Undefined,
}
Expand description
A Javascript Constant
Variants
String(String)
A UTF-8 string, such as "Hello, world"
RegExp(String, bool, bool)
Num(f64)
Int(i32)
Bool(bool)
Null
Undefined
Trait Implementations
sourceimpl Trace for Const
impl Trace for Const
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
impl StructuralPartialEq for Const
Auto Trait Implementations
impl RefUnwindSafe for Const
impl Send for Const
impl Sync for Const
impl Unpin for Const
impl UnwindSafe for Const
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more