Skip to main content

SimdConsts

Trait 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 Constants§

Required Associated Types§

Source

type Scalar: Copy + Debug + Sync + Send

Source

type HorizontalAddScalar: Copy + Debug + Sync + Send

Source

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.

Source

type UnderlyingType: Copy + Debug + Sync + Send

The underlying intrinsic SIMD type.

Source

type Engine: Simd

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SimdConsts for F32x8

Source§

impl SimdConsts for F64x4

Source§

impl SimdConsts for I8x32

Source§

impl SimdConsts for I16x16

Source§

impl SimdConsts for I32x8

Source§

impl SimdConsts for I64x4

Source§

impl SimdConsts for F32x16

Source§

impl SimdConsts for F64x8

Source§

impl SimdConsts for I8x64

Source§

impl SimdConsts for I16x32

Source§

impl SimdConsts for I32x16

Source§

impl SimdConsts for I64x8

Source§

impl SimdConsts for F32x1

Source§

impl SimdConsts for F64x1

Source§

impl SimdConsts for I8x1

Source§

impl SimdConsts for I16x1

Source§

impl SimdConsts for I32x1

Source§

impl SimdConsts for I64x1

Source§

impl SimdConsts for F32x4

Source§

impl SimdConsts for F64x2

Source§

impl SimdConsts for I8x16

Source§

impl SimdConsts for I16x8

Source§

impl SimdConsts for I32x4

Source§

impl SimdConsts for I64x2

Source§

impl SimdConsts for F32x4_41

Source§

impl SimdConsts for F64x2_41

Source§

impl SimdConsts for I8x16_41

Source§

impl SimdConsts for I16x8_41

Source§

impl SimdConsts for I32x4_41

Source§

impl SimdConsts for I64x2_41