pub trait SimdTransmuteF32: Sized {
// Provided methods
fn try_transmute_scalar(&self) -> f32 { ... }
fn try_transmute_from_scalar(_scalar: f32) -> Self { ... }
fn try_transmute_sse2(&self) -> __m128 { ... }
fn try_transmute_from_sse2(_sse2: __m128) -> Self { ... }
fn try_transmute_sse41(&self) -> __m128 { ... }
fn try_transmute_from_sse41(_sse41: __m128) -> Self { ... }
fn try_transmute_avx2(&self) -> __m256 { ... }
fn try_transmute_from_avx2(_avx2: __m256) -> Self { ... }
}Provided Methods§
Sourcefn try_transmute_scalar(&self) -> f32
fn try_transmute_scalar(&self) -> f32
Tries to transmute the value into its underlying scalar type. Panics if the value is not a scalar.
Sourcefn try_transmute_from_scalar(_scalar: f32) -> Self
fn try_transmute_from_scalar(_scalar: f32) -> Self
Tries to create the value from its underlying scalar type. Panics if the value is not a scalar.
Sourcefn try_transmute_sse2(&self) -> __m128
fn try_transmute_sse2(&self) -> __m128
Tries to transmute the value into its underlying Sse2 type. Panics if the value is not a Sse2.
Sourcefn try_transmute_from_sse2(_sse2: __m128) -> Self
fn try_transmute_from_sse2(_sse2: __m128) -> Self
Tries to create the value from its underlying Sse2 type. Panics if the value is not a Sse2.
Sourcefn try_transmute_sse41(&self) -> __m128
fn try_transmute_sse41(&self) -> __m128
Tries to transmute the value into its underlying Sse4.1 type. Panics if the value is not a Sse4.1.
Sourcefn try_transmute_from_sse41(_sse41: __m128) -> Self
fn try_transmute_from_sse41(_sse41: __m128) -> Self
Tries to create the value from its underlying Sse4.1 type. Panics if the value is not a Sse4.1.
Sourcefn try_transmute_avx2(&self) -> __m256
fn try_transmute_avx2(&self) -> __m256
Tries to transmute the value into its underlying Avx2 type. Panics if the value is not a Avx2.
Sourcefn try_transmute_from_avx2(_avx2: __m256) -> Self
fn try_transmute_from_avx2(_avx2: __m256) -> Self
Tries to create the value from its underlying Avx2 type. Panics if the value is not a Avx2.
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.