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

Re-export vek types. 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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SimdMask for u8

source§

impl SimdMask for u16

source§

impl SimdMask for u32

source§

impl SimdMask for u64

source§

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

Implementors§