pub trait AsTypedArray<'a, T> { type Result: JsSerialize; unsafe fn as_typed_array(self) -> Self::Result; }