Skip to main content

SimdCompressor

Trait SimdCompressor 

Source
pub trait SimdCompressor: Compressor {
    // Required methods
    fn simd_available() -> bool;
    fn simd_level() -> &'static str;
    fn set_simd_enabled(&mut self, enabled: bool);
}
Expand description

SIMD-accelerated compression operations.

Required Methods§

Source

fn simd_available() -> bool

Check if SIMD is available on current platform.

Source

fn simd_level() -> &'static str

Get SIMD feature level (e.g., “avx2”, “avx512”, “neon”).

Source

fn set_simd_enabled(&mut self, enabled: bool)

Force SIMD on/off (for testing).

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§