simd_insert_dyn in core::intrinsics::simd - Rust
Description: Inserts an element into a vector, returning the updated vector.

# Function simd_insert_dyn

Source

    pub unsafe fn simd_insert_dyn<T, U>(x: T, idx: u32, val: U) -> T

🔬This is a nightly-only experimental API. (`core_intrinsics`)
Expand description

Inserts an element into a vector, returning the updated vector.

`T` must be a vector with element type `U`.

If the index is `const`, `simd_insert` may emit better assembly.

## §Safety

`idx` must be in-bounds of the vector.