Struct v8::value::Value [] [src]

pub struct Value(_, _);

The superclass of all JavaScript values and objects.

Methods

impl Value
[src]

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 true.

Returns true if this value is false.

Returns true if this value is a symbol or a string.

This is an experimental feature.

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 an experimental feature.

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 an object.

Returns true if this value is boolean.

Returns true if this value is a number.

Returns true if this value is external.

Returns true if this value is a 32-bit signed integer.

Returns true if this value is a 32-bit unsigned integer.

Returns true if this value is a Date.

Returns true if this value is an Arguments 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.

This is an experimental feature.

Returns true if this value is a NativeError.

Returns true if this value is a RegExp.

Returns true if this value is a Generator function.

This is an experimental feature.

Returns true if this value is a Generator object (iterator).

This is an experimental feature.

Returns true if this value is a Promise.

This is an experimental feature.

Returns true if this value is a Map.

Returns true if this value is a Set.

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.

This is an experimental feature.

Returns true if this value is an ArrayBufferView.

This is an experimental feature.

Returns true if this value is one of TypedArrays.

This is an experimental feature.

Returns true if this value is an Uint8Array.

This is an experimental feature.

Returns true if this value is an Uint8ClampedArray.

This is an experimental feature.

Returns true if this value is an Int8Array.

This is an experimental feature.

Returns true if this value is an Uint16Array.

This is an experimental feature.

Returns true if this value is an Int16Array.

This is an experimental feature.

Returns true if this value is an Uint32Array.

This is an experimental feature.

Returns true if this value is an Int32Array.

This is an experimental feature.

Returns true if this value is a Float32Array.

This is an experimental feature.

Returns true if this value is a Float64Array.

This is an experimental feature.

Returns true if this value is a DataView.

This is an experimental feature.

Returns true if this value is a SharedArrayBuffer.

This is an experimental feature.

Returns true if this value is a JavaScript Proxy.

Creates a value from a set of raw pointers.

Returns the underlying raw pointer behind this value.

Methods from Deref<Target=Data>

Returns the underlying raw pointer behind this primitive.

Trait Implementations

impl Debug for Value
[src]

Formats the value using the given formatter.

impl PartialEq for Value
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Deref for Value
[src]

The resulting type after dereferencing

The method called to dereference a value

impl From<Primitive> for Value
[src]

Performs the conversion.

impl From<Boolean> for Value
[src]

Performs the conversion.

impl From<Name> for Value
[src]

Performs the conversion.

impl From<String> for Value
[src]

Performs the conversion.

impl From<Symbol> for Value
[src]

Performs the conversion.

impl From<Private> for Value
[src]

Performs the conversion.

impl From<Number> for Value
[src]

Performs the conversion.

impl From<Integer> for Value
[src]

Performs the conversion.

impl From<Int32> for Value
[src]

Performs the conversion.

impl From<Uint32> for Value
[src]

Performs the conversion.

impl From<Object> for Value
[src]

Performs the conversion.

impl From<Array> for Value
[src]

Performs the conversion.

impl From<Map> for Value
[src]

Performs the conversion.

impl From<Set> for Value
[src]

Performs the conversion.

impl From<Function> for Value
[src]

Performs the conversion.

impl From<Promise> for Value
[src]

Performs the conversion.

impl From<Proxy> for Value
[src]

Performs the conversion.

impl From<ArrayBuffer> for Value
[src]

Performs the conversion.

impl From<ArrayBufferView> for Value
[src]

Performs the conversion.

impl From<TypedArray> for Value
[src]

Performs the conversion.

impl From<Uint8Array> for Value
[src]

Performs the conversion.

impl From<Uint8ClampedArray> for Value
[src]

Performs the conversion.

impl From<Int8Array> for Value
[src]

Performs the conversion.

impl From<Uint16Array> for Value
[src]

Performs the conversion.

impl From<Int16Array> for Value
[src]

Performs the conversion.

impl From<Uint32Array> for Value
[src]

Performs the conversion.

impl From<Int32Array> for Value
[src]

Performs the conversion.

impl From<Float32Array> for Value
[src]

Performs the conversion.

impl From<Float64Array> for Value
[src]

Performs the conversion.

impl From<DataView> for Value
[src]

Performs the conversion.

impl From<SharedArrayBuffer> for Value
[src]

Performs the conversion.

impl From<Date> for Value
[src]

Performs the conversion.

impl From<NumberObject> for Value
[src]

Performs the conversion.

impl From<BooleanObject> for Value
[src]

Performs the conversion.

impl From<StringObject> for Value
[src]

Performs the conversion.

impl From<SymbolObject> for Value
[src]

Performs the conversion.

impl From<RegExp> for Value
[src]

Performs the conversion.

impl From<External> for Value
[src]

Performs the conversion.

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for Value
[src]

A method called when the value goes out of scope. Read more