Trait mozjs::typedarray::TypedArrayElementCreator
[−]
[src]
pub trait TypedArrayElementCreator: TypedArrayElement {
unsafe fn create_new(cx: *mut JSContext, length: u32) -> *mut JSObject;
unsafe fn get_data(obj: *mut JSObject) -> *mut Self::Element;
}Internal trait for creating new typed arrays.
Required Methods
unsafe fn create_new(cx: *mut JSContext, length: u32) -> *mut JSObject
Create a new typed array.
unsafe fn get_data(obj: *mut JSObject) -> *mut Self::Element
Get the data.
Implementors
impl TypedArrayElementCreator for Uint8impl TypedArrayElementCreator for Uint16impl TypedArrayElementCreator for Uint32impl TypedArrayElementCreator for Int8impl TypedArrayElementCreator for Int16impl TypedArrayElementCreator for Int32impl TypedArrayElementCreator for Float32impl TypedArrayElementCreator for Float64impl TypedArrayElementCreator for ClampedU8impl TypedArrayElementCreator for ArrayBufferU8