Skip to main content

HashOperations

Trait HashOperations 

Source
pub trait HashOperations {
    // Required method
    fn hash(&self, algorithm: Algorithm, data: &[u8]) -> Result<Vec<u8>>;
}
Expand description

Hash operations

Required Methods§

Source

fn hash(&self, algorithm: Algorithm, data: &[u8]) -> Result<Vec<u8>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl HashOperations for LibQHashProvider

Available on crate feature alloc only.