Trait simdeez::SimdConsts
source · pub trait SimdConsts: 'static + Copy + Sync + Send + Debug {
type Scalar: Copy + Debug + Sync + Send;
type HorizontalAddScalar: Copy + Debug + Sync + Send;
type ArrayRepresentation: Index<usize, Output = Self::Scalar> + IndexMut<usize> + Clone;
type UnderlyingType: Copy + Debug + Sync + Send;
type Engine: Simd;
const WIDTH: usize;
}
Required Associated Types§
type Scalar: Copy + Debug + Sync + Send
type HorizontalAddScalar: Copy + Debug + Sync + Send
sourcetype ArrayRepresentation: Index<usize, Output = Self::Scalar> + IndexMut<usize> + Clone
type ArrayRepresentation: Index<usize, Output = Self::Scalar> + IndexMut<usize> + Clone
The type of the transmuted array representation. This is to make indexing operations easier.
We are unable to use &[Self::Scalar; Self::WIDTH]
because constants are not allowed.