pub enum Value {
Show 26 variants
Number(f64),
BigInt(BigInt),
String(Vec<u16>),
Boolean(bool),
Undefined,
Null,
Object(Rc<RefCell<JSObjectData>>),
Function(String),
Closure(Vec<(String, Option<Box<Expr>>)>, Vec<Statement>, Rc<RefCell<JSObjectData>>),
AsyncClosure(Vec<(String, Option<Box<Expr>>)>, Vec<Statement>, Rc<RefCell<JSObjectData>>),
GeneratorFunction(Option<String>, Vec<(String, Option<Box<Expr>>)>, Vec<Statement>, Rc<RefCell<JSObjectData>>),
ClassDefinition(Rc<ClassDefinition>),
Getter(Vec<Statement>, Rc<RefCell<JSObjectData>>),
Setter(Vec<(String, Option<Box<Expr>>)>, Vec<Statement>, Rc<RefCell<JSObjectData>>),
Property {
value: Option<Rc<RefCell<Value>>>,
getter: Option<(Vec<Statement>, Rc<RefCell<JSObjectData>>)>,
setter: Option<(Vec<(String, Option<Box<Expr>>)>, Vec<Statement>, Rc<RefCell<JSObjectData>>)>,
},
Promise(Rc<RefCell<JSPromise>>),
Symbol(Rc<SymbolData>),
Map(Rc<RefCell<JSMap>>),
Set(Rc<RefCell<JSSet>>),
WeakMap(Rc<RefCell<JSWeakMap>>),
WeakSet(Rc<RefCell<JSWeakSet>>),
Generator(Rc<RefCell<JSGenerator>>),
Proxy(Rc<RefCell<JSProxy>>),
ArrayBuffer(Rc<RefCell<JSArrayBuffer>>),
DataView(Rc<RefCell<JSDataView>>),
TypedArray(Rc<RefCell<JSTypedArray>>),
}Variants§
Number(f64)
BigInt(BigInt)
String(Vec<u16>)
Boolean(bool)
Undefined
Null
Object(Rc<RefCell<JSObjectData>>)
Function(String)
Closure(Vec<(String, Option<Box<Expr>>)>, Vec<Statement>, Rc<RefCell<JSObjectData>>)
AsyncClosure(Vec<(String, Option<Box<Expr>>)>, Vec<Statement>, Rc<RefCell<JSObjectData>>)
GeneratorFunction(Option<String>, Vec<(String, Option<Box<Expr>>)>, Vec<Statement>, Rc<RefCell<JSObjectData>>)
ClassDefinition(Rc<ClassDefinition>)
Getter(Vec<Statement>, Rc<RefCell<JSObjectData>>)
Setter(Vec<(String, Option<Box<Expr>>)>, Vec<Statement>, Rc<RefCell<JSObjectData>>)
Property
Fields
Promise(Rc<RefCell<JSPromise>>)
Symbol(Rc<SymbolData>)
Map(Rc<RefCell<JSMap>>)
Set(Rc<RefCell<JSSet>>)
WeakMap(Rc<RefCell<JSWeakMap>>)
WeakSet(Rc<RefCell<JSWeakSet>>)
Generator(Rc<RefCell<JSGenerator>>)
Proxy(Rc<RefCell<JSProxy>>)
ArrayBuffer(Rc<RefCell<JSArrayBuffer>>)
DataView(Rc<RefCell<JSDataView>>)
TypedArray(Rc<RefCell<JSTypedArray>>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl !UnwindSafe for Value
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)