Skip to main content

simd_extract

Function simd_extract 

Source
pub const unsafe fn simd_extract<T, U>(x: T, idx: u32) -> U
🔬This is a nightly-only experimental API. (core_intrinsics)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description

Extracts an element from a vector.

T must be a vector with element type U, and idx must be const.

§Safety

idx must be const and in-bounds of the vector.