Struct v8::value::Primitive [] [src]

pub struct Primitive(_, _);

The superclass of primitive values. See ECMA-262 4.3.2.

Methods

impl Primitive
[src]

Creates a primitive from a set of raw pointers.

Returns the underlying raw pointer behind this primitive.

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

Returns the underlying raw pointer behind this value.

Trait Implementations

impl Debug for Primitive
[src]

Formats the value using the given formatter.

impl Deref for Primitive
[src]

The resulting type after dereferencing

The method called to dereference a value

impl From<Boolean> for Primitive
[src]

Performs the conversion.

impl From<Name> for Primitive
[src]

Performs the conversion.

impl From<String> for Primitive
[src]

Performs the conversion.

impl From<Symbol> for Primitive
[src]

Performs the conversion.

impl From<Private> for Primitive
[src]

Performs the conversion.

impl From<Number> for Primitive
[src]

Performs the conversion.

impl From<Integer> for Primitive
[src]

Performs the conversion.

impl From<Int32> for Primitive
[src]

Performs the conversion.

impl From<Uint32> for Primitive
[src]

Performs the conversion.

impl Clone for Primitive
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for Primitive
[src]

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