JSVal

Type Alias JSVal 

Source
pub type JSVal = Value;

Aliased Type§

#[repr(C)]
pub struct JSVal { /* private fields */ }

Implementations§

Source§

impl JSVal

Source

pub fn is_undefined(&self) -> bool

Source

pub fn is_null(&self) -> bool

Source

pub fn is_null_or_undefined(&self) -> bool

Source

pub fn is_boolean(&self) -> bool

Source

pub fn is_int32(&self) -> bool

Source

pub fn is_double(&self) -> bool

Source

pub fn is_number(&self) -> bool

Source

pub fn is_primitive(&self) -> bool

Source

pub fn is_string(&self) -> bool

Source

pub fn is_object(&self) -> bool

Source

pub fn is_object_or_null(&self) -> bool

Source

pub fn is_magic(&self) -> bool

Source

pub fn is_symbol(&self) -> bool

Source

pub fn is_bigint(&self) -> bool

Source

pub fn is_gcthing(&self) -> bool

Source

pub fn to_boolean(&self) -> bool

Source

pub fn to_int32(&self) -> i32

Source

pub fn to_double(&self) -> f64

Source

pub fn to_number(&self) -> f64

Source

pub fn to_string(&self) -> *mut JSString

Source

pub fn to_object(&self) -> *mut JSObject

Source

pub fn to_object_or_null(&self) -> *mut JSObject

Source

pub fn to_symbol(&self) -> *mut Symbol

Source

pub fn to_bigint(&self) -> *mut BigInt

Source

pub fn to_private(&self) -> *const c_void

Source

pub fn to_gcthing(&self) -> *mut c_void

Source

pub fn is_markable(&self) -> bool

Source

pub fn trace_kind(&self) -> TraceKind

Trait Implementations§

Source§

impl Default for JSVal

Source§

fn default() -> JSVal

Returns the “default value” for a type. Read more

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