pub trait TypedArrayElementCreator: TypedArrayElement {
    // Required methods
    unsafe fn create_new(cx: *mut JSContext, length: usize) -> *mut JSObject;
    unsafe fn get_data(obj: *mut JSObject) -> *mut Self::Element;
}
Expand description

Internal trait for creating new typed arrays.

Required Methods§

source

unsafe fn create_new(cx: *mut JSContext, length: usize) -> *mut JSObject

Create a new typed array.

source

unsafe fn get_data(obj: *mut JSObject) -> *mut Self::Element

Get the data.

Object Safety§

This trait is not object safe.

Implementors§