Type Alias mozjs_sys::jsapi::jsid

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 initial() -> jsid

Create a default value
source§

unsafe fn post_barrier(_: *mut jsid, _: jsid, _: jsid)

Place a post-write barrier
source§

impl RootKind for jsid

§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

const KIND: RootKind = JS::RootKind::Id