Trait js::typedarray::TypedArrayElement [] [src]

pub trait TypedArrayElement {
    type Element;
    unsafe fn unwrap_array(obj: *mut JSObject) -> *mut JSObject;
unsafe fn length_and_data(obj: *mut JSObject) -> (*mut Self::Element, u32); }

Internal trait used to associate an element type with an underlying representation and various functions required to manipulate typed arrays of that element type.

Associated Types

Underlying primitive representation of this element type.

Required Methods

Unwrap a typed array JS reflector for this element type.

Retrieve the length and data of a typed array's buffer for this element type.

Implementors