Skip to main content

SimdSelector

Trait SimdSelector 

Source
pub trait SimdSelector {
    // Required methods
    fn select(&self) -> &dyn SimdOps;
    fn select_ext(&self) -> &dyn SimdOpsExt;
}
Expand description

Trait for selecting SIMD implementation at runtime.

Required Methods§

Source

fn select(&self) -> &dyn SimdOps

Get the best available SIMD implementation for this CPU.

Source

fn select_ext(&self) -> &dyn SimdOpsExt

Get the best available extended SIMD implementation.

Implementors§