pub trait Hasher:
Default
+ Write
+ Send
+ Sync
+ 'static {
type Output: Debug + Clone + Eq + AsRef<[u8]> + 'static;
// Required method
fn finalize(self) -> Self::Output;
// Provided methods
fn update_with_bcs_bytes(
&mut self,
value: &impl Serialize,
) -> Result<(), ViewError> { ... }
fn update_with_bytes(&mut self, value: &[u8]) -> Result<(), ViewError> { ... }
}
Expand description
The requirement for the hasher type in HashableView
.
Required Associated Types§
Required Methods§
Provided Methods§
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.