Skip to main content

SimdCast

Trait SimdCast 

Source
pub unsafe trait SimdCast: SimdElement { }
This trait cannot be implemented outside core.
🔬This is a nightly-only experimental API. (portable_simd #86656)
Expand description

Supporting trait for Simd::cast. Typically doesn’t need to be used directly.

§Safety

Implementing this trait asserts that the type is a valid vector element for the simd_cast or simd_as intrinsics.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§