Trait SimdFrom

pub trait SimdFrom<T, S: Simd>

Value conversion, adding a SIMD blessing.

Analogous to From, but takes a SIMD token, which is used to bless the new value. Most such conversions are safe transmutes, but this trait also supports splats, and implementations can use the SIMD token to use an efficient splat intrinsic.

The SimdInto trait is also provided for convenience.

Required Methods

fn simd_from(simd: S, value: T) -> Self

Implementors