Struct mozjs::jsapi::PropertyKey
source · #[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> 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 more