Trait anyhash::Hasher

source ·
pub trait Hasher<T>: HasherWrite {
    // Required method
    fn finish(&self) -> T;
}
Expand description

A trait for hashing an arbitrary stream of bytes. The write methods are defined in the HasherWrite trait.

Required Methods§

source

fn finish(&self) -> T

Returns the hash value for the values written so far.

Implementations on Foreign Types§

source§

impl<T, H: ?Sized + Hasher<T>> Hasher<T> for &mut H

source§

fn finish(&self) -> T

source§

impl<T, H: ?Sized + Hasher<T>> Hasher<T> for Box<H>

Available on crate feature alloc only.
source§

fn finish(&self) -> T

Implementors§

source§

impl Hasher<u64> for Xxh64

Available on crate feature xxh64 only.
source§

impl<T, H: Hasher<T>> Hasher<T> for HasherBe<T, H>

source§

impl<T, H: Hasher<T>> Hasher<T> for HasherLe<T, H>

source§

impl<T: Type, V: Version> Hasher<T> for Fnv<T, V>

Available on crate feature fnv only.
source§

impl<V: Version> Hasher<u32> for SpookyV<V>

Available on crate feature spooky only.
source§

impl<V: Version> Hasher<u64> for SpookyV<V>

Available on crate feature spooky only.
source§

impl<V: Version> Hasher<u128> for SpookyV<V>

Available on crate feature spooky only.