Trait linera_views::views::Hasher
source · 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§
Object Safety§
This trait is not object safe.