Module palette::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§

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