mozjs_
sys
0.128.6-1
jsid
Aliased type
Fields
asBits_
Methods
asBits
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
Type Alias
mozjs_sys
::
jsapi
::
jsid
Copy item path
source
·
[
−
]
pub type jsid =
PropertyKey
;
Aliased Type
§
struct jsid { pub asBits_:
usize
, }
Fields
§
§
asBits_:
usize
Implementations
§
source
§
impl
jsid
source
fn
asBits
(&self) ->
usize
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
§
type
Vtable
=
()
source
§
const
VTABLE
: Self::
Vtable
= ()
source
§
const
KIND
:
RootKind
= JS::RootKind::Id