pub trait SimdMask: Unsigned + Bounded + FromPrimitive {
    // Provided method
    fn from_bool(b: bool) -> Self { ... }
}
Expand description

Implemented by unsigned integer types that can represent the result of SIMD comparison elements: semantically, these are booleans, but in their representation, zero is false and any other value is true. Typically, SIMD comparison of two vectors will yield a vector of mask elements, on which you can call reduce_and() or reduce_or().

Provided Methods§

source

fn from_bool(b: bool) -> Self

Used for fallback code.

Implementations on Foreign Types§

source§

impl SimdMask for u32

source§

impl SimdMask for u8

source§

impl SimdMask for u64

source§

impl SimdMask for u16

source§

impl<T> SimdMask for Wrapping<T>where T: SimdMask, Wrapping<T>: Unsigned,

Implementors§