Trait pixel_game_lib::SimdElement
source · pub trait SimdElement {
type SimdMaskType: SimdMask;
}
Expand description
Re-export vek types.
This trait should be implemented by scalar types, vectors of which are supported by SIMD intrinsics.
For instance, i16 and f32 can implement this trait, as well as #[repr(transparent)]
wrappers of these, but not hand-built numeric types.
Required Associated Types§
sourcetype SimdMaskType: SimdMask
type SimdMaskType: SimdMask
The corresponding mask type for this element type: this is usually the unsigned integer type with the same size.