Trait SimdBase4x

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

A vector containing 4 lanes.

Required Methods§

Source

fn blend<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!(
    U64x4::from([11, 12, 13, 14])
        .blend::<true, true, true, false>(U64x4::from([21, 22, 23, 24])),
    U64x4::from([11, 22, 23, 24]),
);

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§