pub trait HashEngine: Send + Sync {
// Required methods
fn digest(&self, data: &[u8]) -> Vec<u8> ⓘ;
fn code(&self) -> Code;
fn name(&self) -> &'static str;
// Provided method
fn is_simd_enabled(&self) -> bool { ... }
}Expand description
Trait for hardware-accelerated hash computation
Required Methods§
Provided Methods§
Sourcefn is_simd_enabled(&self) -> bool
fn is_simd_enabled(&self) -> bool
Check if SIMD acceleration is enabled
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".