Trait SimdBase32

Source
pub trait SimdBase32: SimdBase
where Self::Scalar: Scalar<Unsigned = u32, Signed = i32>,
{ // Required method fn shuffle<const I3: usize, const I2: usize, const I1: usize, const I0: usize>( &self, ) -> Self; }
Expand description

A vector containing 32-bit values.

Required Methods§

Source

fn shuffle<const I3: usize, const I2: usize, const I1: usize, const I0: usize>( &self, ) -> Self

Shuffle within 128-bit subvector.

§Example
assert_eq!(
    U32x8::from([
        0, 1, 2, 3, 4, 5, 6, 7
    ]).shuffle::<0, 1, 1, 3>(),
    U32x8::from([
        3, 1, 1, 0, 7, 5, 5, 4
    ]),
);

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§