Trait SimdElement
pub unsafe trait SimdElement: Copy
Marker trait for types that may be used as SIMD vector elements.
Safety
This trait, when implemented, asserts the compiler can monomorphize
#[repr(simd)] structs with the marked type as an element.
Strictly, it is valid to impl if the vector will not be miscompiled.
Practically, it is user-unfriendly to impl it if the vector won't compile,
even when no soundness guarantees are broken by allowing the user to try.
Associated Types
type Mask: MaskElement;The mask element type corresponding to this element type.
Implementors
impl SimdElement for f16impl SimdElement for f32impl SimdElement for f64impl SimdElement for i16impl SimdElement for i32impl SimdElement for i64impl SimdElement for i8impl SimdElement for isizeimpl SimdElement for u16impl SimdElement for u32impl SimdElement for u64impl SimdElement for u8impl SimdElement for usizeimpl<T> SimdElement for *const T where T: Pointee<Metadata = ()>,impl<T> SimdElement for *mut T where T: Pointee<Metadata = ()>,