Skip to main content

SimdArch

Trait SimdArch 

Source
pub trait SimdArch:
    Copy
    + Default
    + Send
    + Sync {
    // Required method
    fn dispatch<R>(self, f: impl WithSimd<Output = R>) -> R;
}

Required Methods§

Source

fn dispatch<R>(self, f: impl WithSimd<Output = R>) -> R

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 SimdArch for Arch

Source§

fn dispatch<R>(self, f: impl WithSimd<Output = R>) -> R

Source§

impl SimdArch for Scalar

Source§

fn dispatch<R>(self, f: impl WithSimd<Output = R>) -> R

Implementors§