Docs.rs
bao-mozjs-sys-140.14.0-0
bao-mozjs-sys 140.14.0-0
Permalink
Docs.rs crate page
MPL-2.0
22 August 2026
Links
Repository
crates.io
Source
Owners
putao520
Dependencies
bao-mozjs-src-intl =140.14.0-0
normal
bao-mozjs-src-js =140.14.0-0
normal
bao-mozjs-src-python =140.14.0-0
normal
encoding_c ^0.9.8
normal
encoding_c_mem ^0.2.6
normal
icu_capi =1.5.0
normal
optional
libc ^0.2
normal
libz-rs-sys ^0.5.1
normal
optional
libz-sys ^1.1.19
normal
optional
bindgen ^0.72.1
build
cc ^1
build
flate2 ^1
build
tar ^0.4
build
walkdir ^2
build
Versions
11.3%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
JSVal
mozjs_
sys
140.14.0-0
JSVal
Aliased Type
Methods
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
mozjs_sys
::
jsval
Type Alias
JSVal
Copy item path
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