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§