Trait fasthash::BufHasher[][src]

pub trait BufHasher: FastHasher + AsRef<[u8]> {
    fn with_capacity_and_seed(capacity: usize, seed: Option<Self::Seed>) -> Self;

    fn len(&self) -> usize { ... }
fn is_empty(&self) -> bool { ... }
fn as_slice(&self) -> &[u8] { ... } }

Hasher in the buffer mode for short key

Required Methods

Constructs a buffered hasher with capacity and seed

Provided Methods

Returns the number of bytes in the buffer.

Returns true if the slice has a length of 0.

Important traits for &'a [u8]

Extracts a slice containing the entire buffer.

Implementors