GetSimd

Trait GetSimd 

Source
pub trait GetSimd: Elem {
    type Simd<I: Isa>: Simd<Elem = Self, Isa = I>;
}
Expand description

Get the Simd implementation from an Isa for a given element type.

For example the type <f32 as GetSimd>::Simd<I> yields I::F32 where I is an Isa. This trait is used for example by SimdUnaryOp to determine the type of SIMD vector that corresponds to the element type.

Required Associated Types§

Source

type Simd<I: Isa>: Simd<Elem = Self, Isa = I>

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.

Implementations on Foreign Types§

Source§

impl GetSimd for f32

Source§

type Simd<I: Isa> = <I as Isa>::F32

Source§

impl GetSimd for i8

Source§

type Simd<I: Isa> = <I as Isa>::I8

Source§

impl GetSimd for i16

Source§

type Simd<I: Isa> = <I as Isa>::I16

Source§

impl GetSimd for i32

Source§

type Simd<I: Isa> = <I as Isa>::I32

Source§

impl GetSimd for u8

Source§

type Simd<I: Isa> = <I as Isa>::U8

Source§

impl GetSimd for u16

Source§

type Simd<I: Isa> = <I as Isa>::U16

Implementors§