Trait SimdBase8x

Source
pub trait SimdBase8x: SimdBase {
    // Required method
    fn blend<const B7: bool, const B6: bool, const B5: bool, const B4: bool, const B3: bool, const B2: bool, const B1: bool, const B0: bool>(
        &self,
        if_true: Self,
    ) -> Self;
}
Expand description

A vector containing 8 lanes.

Required Methods§

Source

fn blend<const B7: bool, const B6: bool, const B5: bool, const B4: bool, const B3: bool, const B2: bool, const B1: bool, const B0: bool>( &self, if_true: Self, ) -> Self

If Bi is true, then that lane will be filled by if_true. Otherwise the lane will be filled from self.

§Example
assert_eq!(
    U32x8::from([11, 12, 13, 14, 15, 16, 17, 18])
        .blend::<true, true, true, false, false, true, true, false>(
            U32x8::from([21, 22, 23, 24, 25, 26, 27, 28])),
    U32x8::from([11, 22, 23, 14, 15, 26, 27, 28]),
);

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§