#[repr(C)]pub struct Data(_);
Expand description
The superclass of objects that can reside on V8’s heap.
Implementations
sourceimpl 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
sourceimpl<'s> PartialEq<AccessorSignature> for Data
impl<'s> PartialEq<AccessorSignature> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Array> for Data
impl<'s> PartialEq<Array> for Data
sourceimpl<'s> PartialEq<ArrayBuffer> for Data
impl<'s> PartialEq<ArrayBuffer> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<ArrayBufferView> for Data
impl<'s> PartialEq<ArrayBufferView> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<BigInt64Array> for Data
impl<'s> PartialEq<BigInt64Array> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<BigIntObject> for Data
impl<'s> PartialEq<BigIntObject> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<BigUint64Array> for Data
impl<'s> PartialEq<BigUint64Array> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Boolean> for Data
impl<'s> PartialEq<Boolean> for Data
sourceimpl<'s> PartialEq<BooleanObject> for Data
impl<'s> PartialEq<BooleanObject> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Context> for Data
impl<'s> PartialEq<Context> for Data
sourceimpl<'s> PartialEq<Data> for AccessorSignature
impl<'s> PartialEq<Data> for AccessorSignature
sourceimpl<'s> PartialEq<Data> for Array
impl<'s> PartialEq<Data> for Array
sourceimpl<'s> PartialEq<Data> for ArrayBuffer
impl<'s> PartialEq<Data> for ArrayBuffer
sourceimpl<'s> PartialEq<Data> for ArrayBufferView
impl<'s> PartialEq<Data> for ArrayBufferView
sourceimpl<'s> PartialEq<Data> for BigInt64Array
impl<'s> PartialEq<Data> for BigInt64Array
sourceimpl<'s> PartialEq<Data> for BigIntObject
impl<'s> PartialEq<Data> for BigIntObject
sourceimpl<'s> PartialEq<Data> for BigUint64Array
impl<'s> PartialEq<Data> for BigUint64Array
sourceimpl<'s> PartialEq<Data> for Boolean
impl<'s> PartialEq<Data> for Boolean
sourceimpl<'s> PartialEq<Data> for BooleanObject
impl<'s> PartialEq<Data> for BooleanObject
sourceimpl<'s> PartialEq<Data> for Context
impl<'s> PartialEq<Data> for Context
sourceimpl<'s> PartialEq<Data> for DataView
impl<'s> PartialEq<Data> for DataView
sourceimpl<'s> PartialEq<Data> for Date
impl<'s> PartialEq<Data> for Date
sourceimpl<'s> PartialEq<Data> for External
impl<'s> PartialEq<Data> for External
sourceimpl<'s> PartialEq<Data> for FixedArray
impl<'s> PartialEq<Data> for FixedArray
sourceimpl<'s> PartialEq<Data> for Float32Array
impl<'s> PartialEq<Data> for Float32Array
sourceimpl<'s> PartialEq<Data> for Float64Array
impl<'s> PartialEq<Data> for Float64Array
sourceimpl<'s> PartialEq<Data> for Function
impl<'s> PartialEq<Data> for Function
sourceimpl<'s> PartialEq<Data> for FunctionTemplate
impl<'s> PartialEq<Data> for FunctionTemplate
sourceimpl<'s> PartialEq<Data> for Int16Array
impl<'s> PartialEq<Data> for Int16Array
sourceimpl<'s> PartialEq<Data> for Int32Array
impl<'s> PartialEq<Data> for Int32Array
sourceimpl<'s> PartialEq<Data> for Int8Array
impl<'s> PartialEq<Data> for Int8Array
sourceimpl<'s> PartialEq<Data> for Map
impl<'s> PartialEq<Data> for Map
sourceimpl<'s> PartialEq<Data> for Module
impl<'s> PartialEq<Data> for Module
sourceimpl<'s> PartialEq<Data> for ModuleRequest
impl<'s> PartialEq<Data> for ModuleRequest
sourceimpl<'s> PartialEq<Data> for NumberObject
impl<'s> PartialEq<Data> for NumberObject
sourceimpl<'s> PartialEq<Data> for Object
impl<'s> PartialEq<Data> for Object
sourceimpl<'s> PartialEq<Data> for ObjectTemplate
impl<'s> PartialEq<Data> for ObjectTemplate
sourceimpl<'s> PartialEq<Data> for PrimitiveArray
impl<'s> PartialEq<Data> for PrimitiveArray
sourceimpl<'s> PartialEq<Data> for Private
impl<'s> PartialEq<Data> for Private
sourceimpl<'s> PartialEq<Data> for Promise
impl<'s> PartialEq<Data> for Promise
sourceimpl<'s> PartialEq<Data> for PromiseResolver
impl<'s> PartialEq<Data> for PromiseResolver
sourceimpl<'s> PartialEq<Data> for Proxy
impl<'s> PartialEq<Data> for Proxy
sourceimpl<'s> PartialEq<Data> for RegExp
impl<'s> PartialEq<Data> for RegExp
sourceimpl<'s> PartialEq<Data> for Set
impl<'s> PartialEq<Data> for Set
sourceimpl<'s> PartialEq<Data> for Signature
impl<'s> PartialEq<Data> for Signature
sourceimpl<'s> PartialEq<Data> for StringObject
impl<'s> PartialEq<Data> for StringObject
sourceimpl<'s> PartialEq<Data> for Symbol
impl<'s> PartialEq<Data> for Symbol
sourceimpl<'s> PartialEq<Data> for SymbolObject
impl<'s> PartialEq<Data> for SymbolObject
sourceimpl<'s> PartialEq<Data> for Template
impl<'s> PartialEq<Data> for Template
sourceimpl<'s> PartialEq<Data> for TypedArray
impl<'s> PartialEq<Data> for TypedArray
sourceimpl<'s> PartialEq<Data> for Uint16Array
impl<'s> PartialEq<Data> for Uint16Array
sourceimpl<'s> PartialEq<Data> for Uint32Array
impl<'s> PartialEq<Data> for Uint32Array
sourceimpl<'s> PartialEq<Data> for Uint8Array
impl<'s> PartialEq<Data> for Uint8Array
sourceimpl<'s> PartialEq<Data> for Uint8ClampedArray
impl<'s> PartialEq<Data> for Uint8ClampedArray
sourceimpl<'s> PartialEq<Data> for UnboundModuleScript
impl<'s> PartialEq<Data> for UnboundModuleScript
sourceimpl<'s> PartialEq<Data> for WasmMemoryObject
impl<'s> PartialEq<Data> for WasmMemoryObject
sourceimpl<'s> PartialEq<Data> for WasmModuleObject
impl<'s> PartialEq<Data> for WasmModuleObject
sourceimpl<'s> PartialEq<DataView> for Data
impl<'s> PartialEq<DataView> for Data
sourceimpl<'s> PartialEq<Date> for Data
impl<'s> PartialEq<Date> for Data
sourceimpl<'s> PartialEq<External> for Data
impl<'s> PartialEq<External> for Data
sourceimpl<'s> PartialEq<FixedArray> for Data
impl<'s> PartialEq<FixedArray> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Float32Array> for Data
impl<'s> PartialEq<Float32Array> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Float64Array> for Data
impl<'s> PartialEq<Float64Array> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Function> for Data
impl<'s> PartialEq<Function> for Data
sourceimpl<'s> PartialEq<FunctionTemplate> for Data
impl<'s> PartialEq<FunctionTemplate> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Int16Array> for Data
impl<'s> PartialEq<Int16Array> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Int32Array> for Data
impl<'s> PartialEq<Int32Array> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Int8Array> for Data
impl<'s> PartialEq<Int8Array> for Data
sourceimpl<'s> PartialEq<Map> for Data
impl<'s> PartialEq<Map> for Data
sourceimpl<'s> PartialEq<Module> for Data
impl<'s> PartialEq<Module> for Data
sourceimpl<'s> PartialEq<ModuleRequest> for Data
impl<'s> PartialEq<ModuleRequest> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<NumberObject> for Data
impl<'s> PartialEq<NumberObject> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Object> for Data
impl<'s> PartialEq<Object> for Data
sourceimpl<'s> PartialEq<ObjectTemplate> for Data
impl<'s> PartialEq<ObjectTemplate> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<PrimitiveArray> for Data
impl<'s> PartialEq<PrimitiveArray> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Private> for Data
impl<'s> PartialEq<Private> for Data
sourceimpl<'s> PartialEq<Promise> for Data
impl<'s> PartialEq<Promise> for Data
sourceimpl<'s> PartialEq<PromiseResolver> for Data
impl<'s> PartialEq<PromiseResolver> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Proxy> for Data
impl<'s> PartialEq<Proxy> for Data
sourceimpl<'s> PartialEq<RegExp> for Data
impl<'s> PartialEq<RegExp> for Data
sourceimpl<'s> PartialEq<Set> for Data
impl<'s> PartialEq<Set> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Signature> for Data
impl<'s> PartialEq<Signature> for Data
sourceimpl<'s> PartialEq<StringObject> for Data
impl<'s> PartialEq<StringObject> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Symbol> for Data
impl<'s> PartialEq<Symbol> for Data
sourceimpl<'s> PartialEq<SymbolObject> for Data
impl<'s> PartialEq<SymbolObject> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Template> for Data
impl<'s> PartialEq<Template> for Data
sourceimpl<'s> PartialEq<TypedArray> for Data
impl<'s> PartialEq<TypedArray> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Uint16Array> for Data
impl<'s> PartialEq<Uint16Array> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Uint32Array> for Data
impl<'s> PartialEq<Uint32Array> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Uint8Array> for Data
impl<'s> PartialEq<Uint8Array> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<Uint8ClampedArray> for Data
impl<'s> PartialEq<Uint8ClampedArray> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<UnboundModuleScript> for Data
impl<'s> PartialEq<UnboundModuleScript> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<WasmMemoryObject> for Data
impl<'s> PartialEq<WasmMemoryObject> for Data
sourcefn 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 ==
. Read more
sourceimpl<'s> PartialEq<WasmModuleObject> for Data
impl<'s> PartialEq<WasmModuleObject> for Data
sourcefn 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 ==
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more