Enum mozjs::jsapi::JSValueType
source · #[repr(u8)]pub enum JSValueType {
JSVAL_TYPE_DOUBLE,
JSVAL_TYPE_INT32,
JSVAL_TYPE_BOOLEAN,
JSVAL_TYPE_UNDEFINED,
JSVAL_TYPE_NULL,
JSVAL_TYPE_MAGIC,
JSVAL_TYPE_STRING,
JSVAL_TYPE_SYMBOL,
JSVAL_TYPE_PRIVATE_GCTHING,
JSVAL_TYPE_BIGINT,
JSVAL_TYPE_OBJECT,
JSVAL_TYPE_UNKNOWN,
}
Variants§
JSVAL_TYPE_DOUBLE
JSVAL_TYPE_INT32
JSVAL_TYPE_BOOLEAN
JSVAL_TYPE_UNDEFINED
JSVAL_TYPE_NULL
JSVAL_TYPE_MAGIC
JSVAL_TYPE_STRING
JSVAL_TYPE_SYMBOL
JSVAL_TYPE_PRIVATE_GCTHING
JSVAL_TYPE_BIGINT
JSVAL_TYPE_OBJECT
JSVAL_TYPE_UNKNOWN
Trait Implementations§
source§impl Clone for JSValueType
impl Clone for JSValueType
source§fn clone(&self) -> JSValueType
fn clone(&self) -> JSValueType
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 JSValueType
impl Debug for JSValueType
source§impl Hash for JSValueType
impl Hash for JSValueType
source§impl PartialEq<JSValueType> for JSValueType
impl PartialEq<JSValueType> for JSValueType
source§fn eq(&self, other: &JSValueType) -> bool
fn eq(&self, other: &JSValueType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for JSValueType
impl Eq for JSValueType
impl StructuralEq for JSValueType
impl StructuralPartialEq for JSValueType
Auto Trait Implementations§
impl RefUnwindSafe for JSValueType
impl Send for JSValueType
impl Sync for JSValueType
impl Unpin for JSValueType
impl UnwindSafe for JSValueType
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