Struct fbuzhash::BuzHash[][src]

pub struct BuzHash { /* fields omitted */ }

BuzHash implements the hash.Hash32 interface and also has a function to write a single byte.

Implementations

impl BuzHash[src]

pub fn new(n: u32) -> Self[src]

pub fn hash_byte(&mut self, b: u8) -> u32[src]

HashByte updates the hash with a single byte and returns the resulting sum

pub fn sum32(&self) -> u32[src]

pub fn reset(&mut self)[src]

Trait Implementations

impl Write for BuzHash[src]

Auto Trait Implementations

impl RefUnwindSafe for BuzHash

impl Send for BuzHash

impl Sync for BuzHash

impl Unpin for BuzHash

impl UnwindSafe for BuzHash

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.