Struct js::typedarray::TypedArray [] [src]

pub struct TypedArray<'a, T: 'a + TypedArrayElement> { /* fields omitted */ }

A rooted typed array.

Methods

impl<'a, T: TypedArrayElement> TypedArray<'a, T>
[src]

[src]

Create a typed array representation that wraps an existing JS reflector. This operation will fail if attempted on a JS object that does not match the expected typed array details.

[src]

Unsafety

The returned slice can be invalidated if the underlying typed array is neutered.

[src]

Unsafety

The returned slice can be invalidated if the underlying typed array is neutered.

The underlying JSObject can be aliased, which can lead to Undefined Behavior due to mutable aliasing.

impl<'a, T: TypedArrayElementCreator + TypedArrayElement> TypedArray<'a, T>
[src]

[src]

Create a new JS typed array, optionally providing initial data that will be copied into the newly-allocated buffer. Returns the new JS reflector.

[src]

Update an existed JS typed array