[][src]Trait starling::traits::Hasher

pub trait Hasher<ArrayType> where
    ArrayType: Array
{ type HashType; fn new(size: usize) -> Self::HashType;
fn update(&mut self, data: &[u8]);
fn finalize(self) -> ArrayType; }

The required interface for structs representing a hasher.

Associated Types

type HashType

The type of hasher.

Loading content...

Required methods

fn new(size: usize) -> Self::HashType

Creates a new HashType.

fn update(&mut self, data: &[u8])

Adds data to be hashed.

fn finalize(self) -> ArrayType

Outputs the hash from updated data.

Loading content...

Implementations on Foreign Types

impl<ArrayType> Hasher<ArrayType> for DefaultHasher where
    ArrayType: Array
[src]

type HashType = Self

Loading content...

Implementors

Loading content...