jsid

Type Alias jsid 

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 = ()

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes