Skip to main content

AlignTo

Trait AlignTo 

Source
pub trait AlignTo
where Self: Pod + Default + PartialEq + From<Self::Elem>, Self::Elem: Pod + Default + PartialEq,
{ type Elem; // Provided methods fn simd_align_to( slice: &[Self::Elem], ) -> (&[Self::Elem], &[Self], &[Self::Elem]) { ... } fn simd_align_to_mut( slice: &mut [Self::Elem], ) -> (&mut [Self::Elem], &mut [Self], &mut [Self::Elem]) { ... } }
Expand description

A trait for SIMD variants of align_to functions.

Required Associated Types§

Source

type Elem

The element type of this SIMD vector.

Provided Methods§

Source

fn simd_align_to( slice: &[Self::Elem], ) -> (&[Self::Elem], &[Self], &[Self::Elem])

A SIMD variant of align_to.

Source

fn simd_align_to_mut( slice: &mut [Self::Elem], ) -> (&mut [Self::Elem], &mut [Self], &mut [Self::Elem])

A SIMD variant of align_to_mut.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl AlignTo for f32x4

Source§

impl AlignTo for f32x8

Source§

impl AlignTo for f32x16

Source§

impl AlignTo for f64x2

Source§

impl AlignTo for f64x4

Source§

impl AlignTo for f64x8

Source§

impl AlignTo for i8x16

Source§

impl AlignTo for i8x32

Source§

impl AlignTo for i8x64

Source§

impl AlignTo for i16x8

Source§

impl AlignTo for i16x16

Source§

impl AlignTo for i16x32

Source§

impl AlignTo for i32x4

Source§

impl AlignTo for i32x8

Source§

impl AlignTo for i32x16

Source§

impl AlignTo for i64x2

Source§

impl AlignTo for i64x4

Source§

impl AlignTo for i64x8

Source§

impl AlignTo for u8x16

Source§

impl AlignTo for u8x32

Source§

impl AlignTo for u8x64

Source§

impl AlignTo for u16x8

Source§

impl AlignTo for u16x16

Source§

impl AlignTo for u16x32

Source§

impl AlignTo for u32x4

Source§

impl AlignTo for u32x8

Source§

impl AlignTo for u32x16

Source§

impl AlignTo for u64x2

Source§

impl AlignTo for u64x4

Source§

impl AlignTo for u64x8