mozjs_
sys
0.128.6-1
JSVal
Aliased type
Methods
asBits
is_bigint
is_boolean
is_double
is_gcthing
is_int32
is_magic
is_markable
is_null
is_null_or_undefined
is_number
is_object
is_object_or_null
is_primitive
is_string
is_symbol
is_undefined
to_bigint
to_boolean
to_double
to_gcthing
to_int32
to_number
to_object
to_object_or_null
to_private
to_string
to_symbol
trace_kind
Trait Implementations
Default
In mozjs_
sys::
jsval
Type Alias
mozjs_sys
::
jsval
::
JSVal
Copy item path
source
·
[
−
]
pub type JSVal =
Value
;
Aliased Type
§
struct JSVal {
/* private fields */
}
Implementations
§
source
§
impl
JSVal
source
fn
asBits
(&self) ->
u64
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