pub trait FixedOutput:
Update
+ OutputSizeUser
+ Sized {
// Required method
fn finalize_into(self, out: &mut Output<Self>);
// Provided method
fn finalize_fixed(self) -> Output<Self> { ... }
}
Expand description
Trait for hash functions with fixed-size output.
Required Methods§
Sourcefn finalize_into(self, out: &mut Output<Self>)
fn finalize_into(self, out: &mut Output<Self>)
Consume value and write result into provided array.
Provided Methods§
Sourcefn finalize_fixed(self) -> Output<Self>
fn finalize_fixed(self) -> Output<Self>
Retrieve result and consume the hasher instance.
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§
impl<T> FixedOutput for CoreWrapper<T>
Available on crate feature
core-api
only.