| 1 | // Copyright 2025 the Fearless_SIMD Authors |
| 2 | // SPDX-License-Identifier: Apache-2.0 OR MIT |
| 3 | |
| 4 | /// A token for WASM SIMD128. |
| 5 | #[derive(Clone, Copy, Debug)] |
| 6 | pub struct WasmSimd128 { |
| 7 | _private: (), |
| 8 | } |
| 9 | |
| 10 | // There is intentionally no method delegation here because all the WASM SIMD128 methods are enabled or disabled |
| 11 | // statically--there is no feature detection. |
| 12 | impl WasmSimd128 { |
| 13 | /// Create a SIMD token. |
| 14 | #[inline] |
| 15 | pub const fn new() -> Self { |
| 16 | Self { _private: () } |
| 17 | } |
| 18 | } |