Skip to main content

new_hash_encoder

Function new_hash_encoder 

Source
pub fn new_hash_encoder<H: DeterministicHasher + ?Sized>(
    hasher: &mut H,
) -> HashEncoder<'_, H>
Expand description

Creates a new HashEncoder that encodes directly to the given hasher.

This is useful for computing hashes of encoded values without allocating a buffer.