vsimd::isa

Trait InstructionSet

Source
pub unsafe trait InstructionSet: Copy + 'static {
    const ID: InstructionSetTypeId;
    const ARCH: bool;

    // Required methods
    unsafe fn new() -> Self;
    fn is_enabled() -> bool;
}

Required Associated Constants§

Required Methods§

Source

unsafe fn new() -> Self

Source

fn is_enabled() -> bool

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.

Implementors§

Source§

impl InstructionSet for AVX2

Source§

const ID: InstructionSetTypeId = InstructionSetTypeId::AVX2

Source§

const ARCH: bool = true

Source§

impl InstructionSet for Fallback

Source§

const ID: InstructionSetTypeId = InstructionSetTypeId::Fallback

Source§

const ARCH: bool = true

Source§

impl InstructionSet for NEON

Source§

const ID: InstructionSetTypeId = InstructionSetTypeId::NEON

Source§

const ARCH: bool = false

Source§

impl InstructionSet for SSE2

Source§

const ID: InstructionSetTypeId = InstructionSetTypeId::SSE2

Source§

const ARCH: bool = true

Source§

impl InstructionSet for SSE41

Source§

const ID: InstructionSetTypeId = InstructionSetTypeId::SSE41

Source§

const ARCH: bool = true

Source§

impl InstructionSet for SSSE3

Source§

const ID: InstructionSetTypeId = InstructionSetTypeId::SSSE3

Source§

const ARCH: bool = true

Source§

impl InstructionSet for WASM128

Source§

const ID: InstructionSetTypeId = InstructionSetTypeId::WASM128

Source§

const ARCH: bool = false