AlignedAllocable

Trait AlignedAllocable 

Source
pub trait AlignedAllocable:
    Zero
    + Clone
    + Copy
    + Sized {
    // Required method
    unsafe fn alloc(n: usize) -> *mut Self;
}
Expand description

Allocate SIMD-aligned memory of Real/Complex type

Required Methods§

Source

unsafe fn alloc(n: usize) -> *mut Self

Allocate SIMD-aligned memory

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.

Implementations on Foreign Types§

Source§

impl AlignedAllocable for f32

Source§

unsafe fn alloc(n: usize) -> *mut Self

Source§

impl AlignedAllocable for f64

Source§

unsafe fn alloc(n: usize) -> *mut Self

Implementors§