trait Swizzle2Impl<const INPUT_LANES: usize, const OUTPUT_LANES: usize> {
    const INDEX_IMPL: [u32; OUTPUT_LANES];
}
🔬This is a nightly-only experimental API. (portable_simd #86656)
Expand description

The simd_shuffle intrinsic expects u32, so do error checking and conversion here. This trait hides INDEX_IMPL from the public API.

Required Associated Constants§

source

const INDEX_IMPL: [u32; OUTPUT_LANES]

🔬This is a nightly-only experimental API. (portable_simd #86656)

Implementors§

source§

impl<T, const INPUT_LANES: usize, const OUTPUT_LANES: usize> Swizzle2Impl<INPUT_LANES, OUTPUT_LANES> for Twhere T: Swizzle2<INPUT_LANES, OUTPUT_LANES> + ?Sized,