pub type JSVal = Value;Aliased Type§
#[repr(C)]pub struct JSVal { /* private fields */ }Implementations§
Source§impl JSVal
impl JSVal
pub fn is_undefined(&self) -> bool
pub fn is_null(&self) -> bool
pub fn is_null_or_undefined(&self) -> bool
pub fn is_boolean(&self) -> bool
pub fn is_int32(&self) -> bool
pub fn is_double(&self) -> bool
pub fn is_number(&self) -> bool
pub fn is_primitive(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_object(&self) -> bool
pub fn is_object_or_null(&self) -> bool
pub fn is_magic(&self) -> bool
pub fn is_symbol(&self) -> bool
pub fn is_bigint(&self) -> bool
pub fn is_gcthing(&self) -> bool
pub fn to_boolean(&self) -> bool
pub fn to_int32(&self) -> i32
pub fn to_double(&self) -> f64
pub fn to_number(&self) -> f64
pub fn to_string(&self) -> *mut JSString
pub fn to_object(&self) -> *mut JSObject
pub fn to_object_or_null(&self) -> *mut JSObject
pub fn to_symbol(&self) -> *mut Symbol
pub fn to_bigint(&self) -> *mut BigInt
pub fn to_private(&self) -> *const c_void
pub fn to_gcthing(&self) -> *mut c_void
pub fn is_markable(&self) -> bool
pub fn trace_kind(&self) -> TraceKind
Trait Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes