W3cubDocs

/Rust

Function simd_extract_dyn

pub unsafe fn simd_extract_dyn<T, U>(x: T, idx: u32) -> U
🔬This is a nightly-only experimental API. (core_intrinsics)

Extracts an element from a vector.

T must be a vector with element type U.

If the index is const, simd_extract may emit better assembly.

Safety

idx must be in-bounds of the vector.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/intrinsics/simd/fn.simd_extract_dyn.html