pub trait FixedOutputReset: FixedOutput + Reset {
// Required method
fn finalize_into_reset(&mut self, out: &mut Array<u8, Self::OutputSize>);
// Provided method
fn finalize_fixed_reset(&mut self) -> Array<u8, Self::OutputSize> { ... }
}Expand description
Trait for hash functions with fixed-size output able to reset themselves.
Required Methods§
Sourcefn finalize_into_reset(&mut self, out: &mut Array<u8, Self::OutputSize>)
fn finalize_into_reset(&mut self, out: &mut Array<u8, Self::OutputSize>)
Write result into provided array and reset the hasher state.
Provided Methods§
Sourcefn finalize_fixed_reset(&mut self) -> Array<u8, Self::OutputSize>
fn finalize_fixed_reset(&mut self) -> Array<u8, Self::OutputSize>
Retrieve result and reset the hasher state.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".