Trait mozjs::typedarray::TypedArrayElementCreator
source · 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§
Object Safety§
This trait is not object safe.