SimdSize

Trait SimdSize 

Source
pub trait SimdSize {
    const SIMD_SIZE: usize;
}
Expand description

Trait defining SIMD width

Required Associated Constants§

Source

const SIMD_SIZE: usize

Number of elements processed in a single iteration

This value is used when checking array sizes, as we want to be sure to pass the JIT code an appropriately sized array.

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 SimdSize for f32

Source§

const SIMD_SIZE: usize = 8usize

Source§

impl SimdSize for Grad

Source§

const SIMD_SIZE: usize = 1usize

Implementors§