Trait MaskNarrow
pub trait MaskNarrow<S: Simd>: SimdMask<S> + Seal
Narrowing conversion of two SIMD masks, preserving each lane's boolean value.
Both inputs have the same logical bit width as the result. The result has lanes half as
wide and twice as many lanes: self supplies the lower lanes and high supplies the upper
lanes. This is supported for 16-, 32-, and 64-bit lanes at logical widths of 128, 256, and 512
bits, independently of the backend's physical mask representation.
This is the inverse of MaskWiden::widen. Masks constructed from integer lanes other than
0 or -1 have unspecified behavior.
Associated Types
type Narrowed: MaskWiden<S, Widened = Self>;The same logical-width mask type with lanes half as wide.
Required Methods
fn narrow(self, high: Self) -> Self::NarrowedNarrow each boolean lane and concatenate
selffollowed byhigh.
Implementors
impl<S: Simd> MaskNarrow<S> for mask16x16<S>impl<S: Simd> MaskNarrow<S> for mask16x32<S>impl<S: Simd> MaskNarrow<S> for mask16x8<S>impl<S: Simd> MaskNarrow<S> for mask32x16<S>impl<S: Simd> MaskNarrow<S> for mask32x4<S>impl<S: Simd> MaskNarrow<S> for mask32x8<S>impl<S: Simd> MaskNarrow<S> for mask64x2<S>impl<S: Simd> MaskNarrow<S> for mask64x4<S>impl<S: Simd> MaskNarrow<S> for mask64x8<S>