#[repr(C)]pub struct Data(_);
Expand description
The superclass of objects that can reside on V8’s heap.
Implementations§
source§impl Data
impl Data
sourcepub fn is_big_int(&self) -> bool
pub fn is_big_int(&self) -> bool
Returns true if this data is a BigInt
.
sourcepub fn is_boolean(&self) -> bool
pub fn is_boolean(&self) -> bool
Returns true if this data is a Boolean
.
sourcepub fn is_context(&self) -> bool
pub fn is_context(&self) -> bool
Returns true if this data is a Context
.
sourcepub fn is_fixed_array(&self) -> bool
pub fn is_fixed_array(&self) -> bool
Returns true if this data is a FixedArray
.
sourcepub fn is_function_template(&self) -> bool
pub fn is_function_template(&self) -> bool
Returns true if this data is a FunctionTemplate
.
sourcepub fn is_module_request(&self) -> bool
pub fn is_module_request(&self) -> bool
Returns true if this data is a ModuleRequest
.
sourcepub fn is_object_template(&self) -> bool
pub fn is_object_template(&self) -> bool
Returns true if this data is a ObjectTemplate
.
sourcepub fn is_primitive(&self) -> bool
pub fn is_primitive(&self) -> bool
Returns true if this data is a Primitive
.
sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
Returns true if this data is a Private
.
Trait Implementations§
source§impl<'s> PartialEq<AccessorSignature> for Data
impl<'s> PartialEq<AccessorSignature> for Data
source§fn eq(&self, other: &AccessorSignature) -> bool
fn eq(&self, other: &AccessorSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Array> for Data
impl<'s> PartialEq<Array> for Data
source§impl<'s> PartialEq<ArrayBuffer> for Data
impl<'s> PartialEq<ArrayBuffer> for Data
source§fn eq(&self, other: &ArrayBuffer) -> bool
fn eq(&self, other: &ArrayBuffer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<ArrayBufferView> for Data
impl<'s> PartialEq<ArrayBufferView> for Data
source§fn eq(&self, other: &ArrayBufferView) -> bool
fn eq(&self, other: &ArrayBufferView) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<BigInt64Array> for Data
impl<'s> PartialEq<BigInt64Array> for Data
source§fn eq(&self, other: &BigInt64Array) -> bool
fn eq(&self, other: &BigInt64Array) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<BigIntObject> for Data
impl<'s> PartialEq<BigIntObject> for Data
source§fn eq(&self, other: &BigIntObject) -> bool
fn eq(&self, other: &BigIntObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<BigUint64Array> for Data
impl<'s> PartialEq<BigUint64Array> for Data
source§fn eq(&self, other: &BigUint64Array) -> bool
fn eq(&self, other: &BigUint64Array) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Boolean> for Data
impl<'s> PartialEq<Boolean> for Data
source§impl<'s> PartialEq<BooleanObject> for Data
impl<'s> PartialEq<BooleanObject> for Data
source§fn eq(&self, other: &BooleanObject) -> bool
fn eq(&self, other: &BooleanObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Context> for Data
impl<'s> PartialEq<Context> for Data
source§impl<'s> PartialEq<Data> for AccessorSignature
impl<'s> PartialEq<Data> for AccessorSignature
source§impl<'s> PartialEq<Data> for Array
impl<'s> PartialEq<Data> for Array
source§impl<'s> PartialEq<Data> for ArrayBuffer
impl<'s> PartialEq<Data> for ArrayBuffer
source§impl<'s> PartialEq<Data> for ArrayBufferView
impl<'s> PartialEq<Data> for ArrayBufferView
source§impl<'s> PartialEq<Data> for BigInt64Array
impl<'s> PartialEq<Data> for BigInt64Array
source§impl<'s> PartialEq<Data> for BigIntObject
impl<'s> PartialEq<Data> for BigIntObject
source§impl<'s> PartialEq<Data> for BigUint64Array
impl<'s> PartialEq<Data> for BigUint64Array
source§impl<'s> PartialEq<Data> for Boolean
impl<'s> PartialEq<Data> for Boolean
source§impl<'s> PartialEq<Data> for BooleanObject
impl<'s> PartialEq<Data> for BooleanObject
source§impl<'s> PartialEq<Data> for Context
impl<'s> PartialEq<Data> for Context
source§impl<'s> PartialEq<Data> for DataView
impl<'s> PartialEq<Data> for DataView
source§impl<'s> PartialEq<Data> for Date
impl<'s> PartialEq<Data> for Date
source§impl<'s> PartialEq<Data> for External
impl<'s> PartialEq<Data> for External
source§impl<'s> PartialEq<Data> for FixedArray
impl<'s> PartialEq<Data> for FixedArray
source§impl<'s> PartialEq<Data> for Float32Array
impl<'s> PartialEq<Data> for Float32Array
source§impl<'s> PartialEq<Data> for Float64Array
impl<'s> PartialEq<Data> for Float64Array
source§impl<'s> PartialEq<Data> for Function
impl<'s> PartialEq<Data> for Function
source§impl<'s> PartialEq<Data> for FunctionTemplate
impl<'s> PartialEq<Data> for FunctionTemplate
source§impl<'s> PartialEq<Data> for Int16Array
impl<'s> PartialEq<Data> for Int16Array
source§impl<'s> PartialEq<Data> for Int32Array
impl<'s> PartialEq<Data> for Int32Array
source§impl<'s> PartialEq<Data> for Int8Array
impl<'s> PartialEq<Data> for Int8Array
source§impl<'s> PartialEq<Data> for Map
impl<'s> PartialEq<Data> for Map
source§impl<'s> PartialEq<Data> for Module
impl<'s> PartialEq<Data> for Module
source§impl<'s> PartialEq<Data> for ModuleRequest
impl<'s> PartialEq<Data> for ModuleRequest
source§impl<'s> PartialEq<Data> for NumberObject
impl<'s> PartialEq<Data> for NumberObject
source§impl<'s> PartialEq<Data> for Object
impl<'s> PartialEq<Data> for Object
source§impl<'s> PartialEq<Data> for ObjectTemplate
impl<'s> PartialEq<Data> for ObjectTemplate
source§impl<'s> PartialEq<Data> for PrimitiveArray
impl<'s> PartialEq<Data> for PrimitiveArray
source§impl<'s> PartialEq<Data> for Private
impl<'s> PartialEq<Data> for Private
source§impl<'s> PartialEq<Data> for Promise
impl<'s> PartialEq<Data> for Promise
source§impl<'s> PartialEq<Data> for PromiseResolver
impl<'s> PartialEq<Data> for PromiseResolver
source§impl<'s> PartialEq<Data> for Proxy
impl<'s> PartialEq<Data> for Proxy
source§impl<'s> PartialEq<Data> for RegExp
impl<'s> PartialEq<Data> for RegExp
source§impl<'s> PartialEq<Data> for Set
impl<'s> PartialEq<Data> for Set
source§impl<'s> PartialEq<Data> for Signature
impl<'s> PartialEq<Data> for Signature
source§impl<'s> PartialEq<Data> for StringObject
impl<'s> PartialEq<Data> for StringObject
source§impl<'s> PartialEq<Data> for Symbol
impl<'s> PartialEq<Data> for Symbol
source§impl<'s> PartialEq<Data> for SymbolObject
impl<'s> PartialEq<Data> for SymbolObject
source§impl<'s> PartialEq<Data> for Template
impl<'s> PartialEq<Data> for Template
source§impl<'s> PartialEq<Data> for TypedArray
impl<'s> PartialEq<Data> for TypedArray
source§impl<'s> PartialEq<Data> for Uint16Array
impl<'s> PartialEq<Data> for Uint16Array
source§impl<'s> PartialEq<Data> for Uint32Array
impl<'s> PartialEq<Data> for Uint32Array
source§impl<'s> PartialEq<Data> for Uint8Array
impl<'s> PartialEq<Data> for Uint8Array
source§impl<'s> PartialEq<Data> for Uint8ClampedArray
impl<'s> PartialEq<Data> for Uint8ClampedArray
source§impl<'s> PartialEq<Data> for UnboundModuleScript
impl<'s> PartialEq<Data> for UnboundModuleScript
source§impl<'s> PartialEq<Data> for WasmMemoryObject
impl<'s> PartialEq<Data> for WasmMemoryObject
source§impl<'s> PartialEq<Data> for WasmModuleObject
impl<'s> PartialEq<Data> for WasmModuleObject
source§impl<'s> PartialEq<DataView> for Data
impl<'s> PartialEq<DataView> for Data
source§impl<'s> PartialEq<Date> for Data
impl<'s> PartialEq<Date> for Data
source§impl<'s> PartialEq<External> for Data
impl<'s> PartialEq<External> for Data
source§impl<'s> PartialEq<FixedArray> for Data
impl<'s> PartialEq<FixedArray> for Data
source§fn eq(&self, other: &FixedArray) -> bool
fn eq(&self, other: &FixedArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Float32Array> for Data
impl<'s> PartialEq<Float32Array> for Data
source§fn eq(&self, other: &Float32Array) -> bool
fn eq(&self, other: &Float32Array) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Float64Array> for Data
impl<'s> PartialEq<Float64Array> for Data
source§fn eq(&self, other: &Float64Array) -> bool
fn eq(&self, other: &Float64Array) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Function> for Data
impl<'s> PartialEq<Function> for Data
source§impl<'s> PartialEq<FunctionTemplate> for Data
impl<'s> PartialEq<FunctionTemplate> for Data
source§fn eq(&self, other: &FunctionTemplate) -> bool
fn eq(&self, other: &FunctionTemplate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Int16Array> for Data
impl<'s> PartialEq<Int16Array> for Data
source§fn eq(&self, other: &Int16Array) -> bool
fn eq(&self, other: &Int16Array) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Int32Array> for Data
impl<'s> PartialEq<Int32Array> for Data
source§fn eq(&self, other: &Int32Array) -> bool
fn eq(&self, other: &Int32Array) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Int8Array> for Data
impl<'s> PartialEq<Int8Array> for Data
source§impl<'s> PartialEq<Module> for Data
impl<'s> PartialEq<Module> for Data
source§impl<'s> PartialEq<ModuleRequest> for Data
impl<'s> PartialEq<ModuleRequest> for Data
source§fn eq(&self, other: &ModuleRequest) -> bool
fn eq(&self, other: &ModuleRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<NumberObject> for Data
impl<'s> PartialEq<NumberObject> for Data
source§fn eq(&self, other: &NumberObject) -> bool
fn eq(&self, other: &NumberObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Object> for Data
impl<'s> PartialEq<Object> for Data
source§impl<'s> PartialEq<ObjectTemplate> for Data
impl<'s> PartialEq<ObjectTemplate> for Data
source§fn eq(&self, other: &ObjectTemplate) -> bool
fn eq(&self, other: &ObjectTemplate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<PrimitiveArray> for Data
impl<'s> PartialEq<PrimitiveArray> for Data
source§fn eq(&self, other: &PrimitiveArray) -> bool
fn eq(&self, other: &PrimitiveArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Private> for Data
impl<'s> PartialEq<Private> for Data
source§impl<'s> PartialEq<Promise> for Data
impl<'s> PartialEq<Promise> for Data
source§impl<'s> PartialEq<PromiseResolver> for Data
impl<'s> PartialEq<PromiseResolver> for Data
source§fn eq(&self, other: &PromiseResolver) -> bool
fn eq(&self, other: &PromiseResolver) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Proxy> for Data
impl<'s> PartialEq<Proxy> for Data
source§impl<'s> PartialEq<RegExp> for Data
impl<'s> PartialEq<RegExp> for Data
source§fn eq(&self, other: &SharedArrayBuffer) -> bool
fn eq(&self, other: &SharedArrayBuffer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Signature> for Data
impl<'s> PartialEq<Signature> for Data
source§impl<'s> PartialEq<StringObject> for Data
impl<'s> PartialEq<StringObject> for Data
source§fn eq(&self, other: &StringObject) -> bool
fn eq(&self, other: &StringObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Symbol> for Data
impl<'s> PartialEq<Symbol> for Data
source§impl<'s> PartialEq<SymbolObject> for Data
impl<'s> PartialEq<SymbolObject> for Data
source§fn eq(&self, other: &SymbolObject) -> bool
fn eq(&self, other: &SymbolObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Template> for Data
impl<'s> PartialEq<Template> for Data
source§impl<'s> PartialEq<TypedArray> for Data
impl<'s> PartialEq<TypedArray> for Data
source§fn eq(&self, other: &TypedArray) -> bool
fn eq(&self, other: &TypedArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Uint16Array> for Data
impl<'s> PartialEq<Uint16Array> for Data
source§fn eq(&self, other: &Uint16Array) -> bool
fn eq(&self, other: &Uint16Array) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Uint32Array> for Data
impl<'s> PartialEq<Uint32Array> for Data
source§fn eq(&self, other: &Uint32Array) -> bool
fn eq(&self, other: &Uint32Array) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Uint8Array> for Data
impl<'s> PartialEq<Uint8Array> for Data
source§fn eq(&self, other: &Uint8Array) -> bool
fn eq(&self, other: &Uint8Array) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<Uint8ClampedArray> for Data
impl<'s> PartialEq<Uint8ClampedArray> for Data
source§fn eq(&self, other: &Uint8ClampedArray) -> bool
fn eq(&self, other: &Uint8ClampedArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<UnboundModuleScript> for Data
impl<'s> PartialEq<UnboundModuleScript> for Data
source§fn eq(&self, other: &UnboundModuleScript) -> bool
fn eq(&self, other: &UnboundModuleScript) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<WasmMemoryObject> for Data
impl<'s> PartialEq<WasmMemoryObject> for Data
source§fn eq(&self, other: &WasmMemoryObject) -> bool
fn eq(&self, other: &WasmMemoryObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialEq<WasmModuleObject> for Data
impl<'s> PartialEq<WasmModuleObject> for Data
source§fn eq(&self, other: &WasmModuleObject) -> bool
fn eq(&self, other: &WasmModuleObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.