script::dom::bindings::import::module

Type Alias jsid

Source
pub(crate) type jsid = PropertyKey;

Aliased Type§

struct jsid {
    pub asBits_: usize,
}

Fields§

§asBits_: usize

Implementations

Source§

impl PropertyKey

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 Clone for PropertyKey

Source§

fn clone(&self) -> PropertyKey

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PropertyKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for PropertyKey

Source§

fn default() -> PropertyKey

Returns the “default value” for a type. Read more
Source§

impl GCMethods for PropertyKey

Source§

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

Place a post-write barrier
Source§

unsafe fn initial() -> Self

Create a default value
Source§

impl Initialize for PropertyKey

Source§

unsafe fn initial() -> Option<PropertyKey>

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 PartialEq for PropertyKey

Source§

fn eq(&self, other: &PropertyKey) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl RootKind for PropertyKey

Source§

const VTABLE: <PropertyKey as RootKind>::Vtable = ()

Source§

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

Source§

type Vtable = ()

Source§

impl Copy for PropertyKey

Source§

impl StructuralPartialEq for PropertyKey