#[repr(C)]pub struct PropertyKey {
pub asBits_: usize,
}
Fields§
§asBits_: usize
Implementations§
source§impl PropertyKey
impl PropertyKey
pub fn is_void(&self) -> bool
pub fn is_int(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_symbol(&self) -> bool
pub fn is_gcthing(&self) -> bool
pub fn to_int(&self) -> i32
pub fn to_string(&self) -> *mut JSString
pub fn to_symbol(&self) -> *mut Symbol
pub fn to_gcthing(&self) -> *mut c_void
Trait Implementations§
source§impl Clone for PropertyKey
impl Clone for PropertyKey
source§fn clone(&self) -> PropertyKey
fn clone(&self) -> PropertyKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PropertyKey
impl Debug for PropertyKey
source§impl Default for PropertyKey
impl Default for PropertyKey
source§fn default() -> PropertyKey
fn default() -> PropertyKey
Returns the “default value” for a type. Read more
source§impl GCMethods for PropertyKey
impl GCMethods for PropertyKey
source§unsafe fn initial() -> PropertyKey
unsafe fn initial() -> PropertyKey
Create a default value
source§unsafe fn post_barrier(_: *mut PropertyKey, _: PropertyKey, _: PropertyKey)
unsafe fn post_barrier(_: *mut PropertyKey, _: PropertyKey, _: PropertyKey)
Place a post-write barrier
source§impl PartialEq for PropertyKey
impl PartialEq for PropertyKey
source§fn eq(&self, other: &PropertyKey) -> bool
fn eq(&self, other: &PropertyKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RootKind for PropertyKey
impl RootKind for PropertyKey
impl Copy for PropertyKey
impl StructuralPartialEq for PropertyKey
Auto Trait Implementations§
impl Freeze for PropertyKey
impl RefUnwindSafe for PropertyKey
impl Send for PropertyKey
impl Sync for PropertyKey
impl Unpin for PropertyKey
impl UnwindSafe for PropertyKey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.