Skip to main content

oxilean_codegen/opt_vectorize/
simdtarget_traits.rs

1//! # SIMDTarget - Trait Implementations
2//!
3//! This module contains trait implementations for `SIMDTarget`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::SIMDTarget;
12use std::fmt;
13
14impl fmt::Display for SIMDTarget {
15    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
16        match self {
17            SIMDTarget::Generic => write!(f, "generic"),
18            SIMDTarget::X86SSE => write!(f, "x86-sse"),
19            SIMDTarget::X86AVX => write!(f, "x86-avx"),
20            SIMDTarget::X86AVX512 => write!(f, "x86-avx512"),
21            SIMDTarget::ArmNeon => write!(f, "arm-neon"),
22            SIMDTarget::WasmSimd128 => write!(f, "wasm-simd128"),
23        }
24    }
25}