Skip to main content

HashOps

Trait HashOps 

Source
pub trait HashOps: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn sha256_compress(&self) -> Sha256Compress;
}
Expand description

哈希后端(函数分发形态)。

后端不携带任何实例状态——实现只负责交出选定的压缩函数(通常 是一个经 #[target_feature] 包装的私有函数),能力探测在安装流程 中完成一次。

Required Methods§

Source

fn name(&self) -> &'static str

后端名(诊断/基准报告用)。

Source

fn sha256_compress(&self) -> Sha256Compress

交出 SHA-256 块压缩函数。

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§