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
jsid
mozjs_
sys
140.14.0-0
jsid
Aliased Type
Fields
asBits_
Methods
is_gcthing
is_int
is_string
is_symbol
is_void
to_gcthing
to_int
to_string
to_symbol
Trait Implementations
Default
GCMethods
Initialize
RootKind
In mozjs_
sys::
jsapi
mozjs_sys
::
jsapi
Type Alias
jsid
Copy item path
Source
pub type jsid =
PropertyKey
;
Aliased Type
§
#[repr(C)]
pub struct jsid { pub asBits_:
usize
, }
Fields
§
§
asBits_:
usize
Implementations
§
Source
§
impl
jsid
Source
pub fn
is_void
(&self) ->
bool
Source
pub fn
is_int
(&self) ->
bool
Source
pub fn
is_string
(&self) ->
bool
Source
pub fn
is_symbol
(&self) ->
bool
Source
pub fn
is_gcthing
(&self) ->
bool
Source
pub fn
to_int
(&self) ->
i32
Source
pub fn
to_string
(&self) ->
*mut
JSString
Source
pub fn
to_symbol
(&self) ->
*mut
Symbol
Source
pub fn
to_gcthing
(&self) ->
*mut
c_void
Trait Implementations
§
Source
§
impl
Default
for
jsid
Source
§
fn
default
() -> Self
Returns the “default value” for a type.
Read more
Source
§
impl
GCMethods
for
jsid
Source
§
unsafe fn
post_barrier
(_:
*mut
jsid
, _:
jsid
, _:
jsid
)
Place a post-write barrier
Source
§
unsafe fn
initial
() -> Self
Create a default value
Source
§
impl
Initialize
for
jsid
Source
§
unsafe fn
initial
() ->
Option
<
jsid
>
Create a default value. If there is no meaningful default possible, returns None. SAFETY: The default must not be a value that can be meaningfully garbage collected.
Source
§
impl
RootKind
for
jsid
Source
§
const
VTABLE
: Self::
Vtable
= ()
Source
§
const
KIND
:
RootKind
= JS::RootKind::Id
Source
§
type
Vtable
=
()