Struct v8::Array[][src]

#[repr(C)]
pub struct Array(_);
Expand description

An instance of the built-in array constructor (ECMA-262, 15.4.2).

Implementations

Creates a JavaScript array with the given length. If the length is negative the returned array will have length 0.

Creates a JavaScript array out of a Local array with a known length.

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

Set the prototype object. This does not skip objects marked to be skipped by proto and it does not consult the security handler.

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.

Implements DefineOwnProperty.

In general, CreateDataProperty will be faster, however, does not allow for specifying attributes.

Returns true on success.

Get the prototype object. This does not skip objects marked to be skipped by proto and it does not consult the security handler.

Note: SideEffectType affects the getter only, not the setter.

Returns the context in which the object was created.

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.

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.

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.

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.

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.

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.

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.