Struct rusty_v8::TypedArray [−][src]
#[repr(C)]pub struct TypedArray(_);
Expand description
A base class for an instance of TypedArray series of constructors (ES6 draft 15.13.6).
Methods from Deref<Target = ArrayBufferView>
Returns underlying ArrayBuffer.
Size of a view in bytes.
Byte offset in |Buffer|.
Methods from Deref<Target = Object>
Set only return Just(true) or Empty(), so if it should never fail, use result.Check().
Set only return Just(true) or Empty(), so if it should never fail, use result.Check().
pub fn set_prototype(
&self,
scope: &mut HandleScope<'_>,
prototype: Local<'_, Value>
) -> Option<bool>
[src]
pub fn set_prototype(
&self,
scope: &mut HandleScope<'_>,
prototype: Local<'_, Value>
) -> Option<bool>
[src]Set the prototype object. This does not skip objects marked to be skipped by proto and it does not consult the security handler.
pub fn create_data_property(
&self,
scope: &mut HandleScope<'_>,
key: Local<'_, Name>,
value: Local<'_, Value>
) -> Option<bool>
[src]
pub fn create_data_property(
&self,
scope: &mut HandleScope<'_>,
key: Local<'_, Name>,
value: Local<'_, Value>
) -> Option<bool>
[src]Implements CreateDataProperty (ECMA-262, 7.3.4).
Defines a configurable, writable, enumerable property with the given value on the object unless the property already exists and is not configurable or the object is not extensible.
Returns true on success.
pub fn define_own_property(
&self,
scope: &mut HandleScope<'_>,
key: Local<'_, Name>,
value: Local<'_, Value>,
attr: PropertyAttribute
) -> Option<bool>
[src]
pub fn define_own_property(
&self,
scope: &mut HandleScope<'_>,
key: Local<'_, Name>,
value: Local<'_, Value>,
attr: PropertyAttribute
) -> Option<bool>
[src]Implements DefineOwnProperty.
In general, CreateDataProperty will be faster, however, does not allow for specifying attributes.
Returns true on success.
pub fn get<'s>(
&self,
scope: &mut HandleScope<'s>,
key: Local<'_, Value>
) -> Option<Local<'s, Value>>
[src]pub fn get_index<'s>(
&self,
scope: &mut HandleScope<'s>,
index: u32
) -> Option<Local<'s, Value>>
[src]Get the prototype object. This does not skip objects marked to be skipped by proto and it does not consult the security handler.
pub fn set_accessor(
&self,
scope: &mut HandleScope<'_>,
name: Local<'_, Name>,
getter: impl for<'s> MapFnTo<AccessorNameGetterCallback<'s>>
) -> Option<bool>
[src]
pub fn set_accessor(
&self,
scope: &mut HandleScope<'_>,
name: Local<'_, Name>,
getter: impl for<'s> MapFnTo<AccessorNameGetterCallback<'s>>
) -> Option<bool>
[src]Note: SideEffectType affects the getter only, not the setter.
pub fn set_accessor_with_setter(
&self,
scope: &mut HandleScope<'_>,
name: Local<'_, Name>,
getter: impl for<'s> MapFnTo<AccessorNameGetterCallback<'s>>,
setter: impl for<'s> MapFnTo<AccessorNameSetterCallback<'s>>
) -> Option<bool>
[src]Returns the context in which the object was created.
pub fn get_own_property_names<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, Array>>
[src]
pub fn get_own_property_names<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, Array>>
[src]This function has the same functionality as GetPropertyNames but the returned array doesn’t contain the names of properties from prototype objects.
Returns an array containing the names of the filtered properties of this object, including properties from prototype objects. The array returned by this method contains the same values as would be enumerated by a for-in statement over this object.
Gets the number of internal fields for this Object.
pub fn get_internal_field<'s>(
&self,
scope: &mut HandleScope<'s>,
index: usize
) -> Option<Local<'s, Value>>
[src]
pub fn get_internal_field<'s>(
&self,
scope: &mut HandleScope<'s>,
index: usize
) -> Option<Local<'s, Value>>
[src]Gets the value from an internal field.
Sets the value in an internal field. Returns false when the index is out of bounds, true otherwise.
pub fn get_private<'s>(
&self,
scope: &mut HandleScope<'s>,
key: Local<'_, Private>
) -> Option<Local<'s, Value>>
[src]
pub fn get_private<'s>(
&self,
scope: &mut HandleScope<'s>,
key: Local<'_, Private>
) -> Option<Local<'s, Value>>
[src]Functionality for private properties. This is an experimental feature, use at your own risk. Note: Private properties are not inherited. Do not rely on this, since it may change.
pub fn set_private<'s>(
&self,
scope: &mut HandleScope<'s>,
key: Local<'_, Private>,
value: Local<'_, Value>
) -> Option<bool>
[src]
pub fn set_private<'s>(
&self,
scope: &mut HandleScope<'s>,
key: Local<'_, Private>,
value: Local<'_, Value>
) -> Option<bool>
[src]Functionality for private properties. This is an experimental feature, use at your own risk. Note: Private properties are not inherited. Do not rely on this, since it may change.
pub fn delete_private<'s>(
&self,
scope: &mut HandleScope<'s>,
key: Local<'_, Private>
) -> Option<bool>
[src]
pub fn delete_private<'s>(
&self,
scope: &mut HandleScope<'s>,
key: Local<'_, Private>
) -> Option<bool>
[src]Functionality for private properties. This is an experimental feature, use at your own risk. Note: Private properties are not inherited. Do not rely on this, since it may change.
pub fn has_private<'s>(
&self,
scope: &mut HandleScope<'s>,
key: Local<'_, Private>
) -> Option<bool>
[src]
pub fn has_private<'s>(
&self,
scope: &mut HandleScope<'s>,
key: Local<'_, Private>
) -> Option<bool>
[src]Functionality for private properties. This is an experimental feature, use at your own risk. Note: Private properties are not inherited. Do not rely on this, since it may change.
Methods from Deref<Target = Value>
Returns true if this value is the undefined value. See ECMA-262 4.3.10.
Returns true if this value is the null value. See ECMA-262 4.3.11.
Returns true if this value is either the null or the undefined value. See ECMA-262 4.3.11. and 4.3.12
Returns true if this value is true.
This is not the same as BooleanValue()
. The latter performs a
conversion to boolean, i.e. the result of Boolean(value)
in JS, whereas
this checks value === true
.
Returns true if this value is false.
This is not the same as !BooleanValue()
. The latter performs a
conversion to boolean, i.e. the result of !Boolean(value)
in JS, whereas
this checks value === false
.
Returns true if this value is a symbol or a string.
This is equivalent to
typeof value === 'string' || typeof value === 'symbol'
in JS.
Returns true if this value is an instance of the String type. See ECMA-262 8.4.
Returns true if this value is a symbol.
This is equivalent to typeof value === 'symbol'
in JS.
Returns true if this value is a function.
Returns true if this value is an array. Note that it will return false for an Proxy for an array.
Returns true if this value is a bigint.
This is equivalent to typeof value === 'bigint'
in JS.
Returns true if this value is boolean.
This is equivalent to typeof value === 'boolean'
in JS.
Returns true if this value is an External
object.
Returns true if this value is an Arguments object.
Returns true if this value is a BigInt object.
Returns true if this value is a Boolean object.
Returns true if this value is a Number object.
Returns true if this value is a String object.
Returns true if this value is a Symbol object.
Returns true if this value is a NativeError.
Returns true if this value is a RegExp.
Returns true if this value is an async function.
Returns true if this value is a Generator function.
Returns true if this value is a Promise.
Returns true if this value is a Map Iterator.
Returns true if this value is a Set Iterator.
Returns true if this value is a WeakMap.
Returns true if this value is a WeakSet.
Returns true if this value is an ArrayBuffer.
Returns true if this value is an ArrayBufferView.
Returns true if this value is one of TypedArrays.
Returns true if this value is an Uint8Array.
Returns true if this value is an Uint8ClampedArray.
Returns true if this value is an Int8Array.
Returns true if this value is an Uint16Array.
Returns true if this value is an Int16Array.
Returns true if this value is an Uint32Array.
Returns true if this value is an Int32Array.
Returns true if this value is a Float32Array.
Returns true if this value is a Float64Array.
Returns true if this value is a BigInt64Array.
Returns true if this value is a BigUint64Array.
Returns true if this value is a DataView.
Returns true if this value is a SharedArrayBuffer. This is an experimental feature.
Returns true if this value is a WasmModuleObject.
Returns true if the value is a Module Namespace Object.
Implements the the abstract operation SameValueZero
, which is defined in
ECMA-262 6th edition § 7.2.10
(http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero).
This operation is used to compare values for the purpose of insertion into
a Set
, or determining whether Map
keys are equivalent. Its semantics
are almost the same as strict_equals()
and same_value()
, with the
following important distinctions:
- It considers
NaN
equal toNaN
(unlikestrict_equals()
). - It considers
-0
equal to0
(unlikesame_value()
).
Convenience function not present in the original V8 API.
Perform the equivalent of Boolean(value) in JS. This can never fail.
Methods from Deref<Target = Data>
Returns the V8 hash value for this value. The current implementation uses a hidden property to store the identity hash on some object types.
The return value will never be 0. Also, it is not guaranteed to be unique.
Returns true if this data is a Private
.
Returns true if this data is an ObjectTemplate
Returns true if this data is a FunctionTemplate.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypedArray
impl Send for TypedArray
impl Sync for TypedArray
impl Unpin for TypedArray
impl UnwindSafe for TypedArray