[go: up one dir, main page]

Trait CustomizedInit

Source
pub trait CustomizedInit: Sized {
    // Required method
    fn new_customized(customization: &[u8]) -> Self;
}
Expand description

Trait for hash functions with customization string for domain separation.

Required Methods§

Source

fn new_customized(customization: &[u8]) -> Self

Create new hasher instance with the given customization string.

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§