Module bool_mask

Source
Expand description

Traits for abstracting over Boolean types.

These traits are mainly useful for allowing SIMD values, where bit masks are typically used instead of bool.

Traits§

BitOps
A helper trait that collects bit traits under one name.
BoolMask
Basic methods for boolean masks.
HasBoolMask
Associates a Boolean type to the implementing type.
LazySelect
Like Select, but can avoid evaluating the input.
Select
Makes a mask bale to select between two values.