unsafe fn into_typed_array_no_copy( slice: &[Self] ) -> TypedArray< Self > {
        let raw = em_asm_int!(
            "return Module.STDWEB.acquire_rust_reference( new Uint8Array( HEAPU8.buffer, $0, $1 ) );",
            slice.as_ptr() as i32,
            slice.len() as i32
        );

        let reference = Reference::from_raw_unchecked( raw );
        TypedArray::from_reference( reference ).unwrap()
    }
// This is unsafe due to the erasure of the slice's lifetime.
This is unsafe due to the erasure of the slice's lifetime.
This is unsafe due to the erasure of the slice ' s lifetime .
unsafe fn into_typed_array_no_copy( slice: &[Self] ) -> TypedArray< Self > {
        let raw = em_asm_int!(
            "return Module.STDWEB.acquire_rust_reference( new Uint8Array( HEAPU8.buffer, $0, $1 ) );",
            slice.as_ptr() as i32,
            slice.len() as i32
        );
        let reference = Reference::from_raw_unchecked( raw );
        TypedArray::from_reference( reference ).unwrap()
    }
unsafe fn into_typed_array_no_copy ( slice : & [ Self ] ) -> TypedArray < Self > { let raw = em_asm_int ! ( " " slice as_ptr ( ) as i32 slice len ( ) as i32 ) ; let reference = Reference :: from_raw_unchecked ( raw ) ; TypedArray :: from_reference ( reference ) . unwrap ( ) }
This is unsafe due to the erasure of the slice's lifetime.
This is unsafe due to the erasure of the slice ' s lifetime .
slice
&[Self]
slice
&[Self]