Struct adler32fast::Adler32[][src]

pub struct Adler32 { /* fields omitted */ }

Represents an in-progress Adler-32 computation.

Implementations

impl Adler32[src]

pub fn new() -> Self[src]

Create a new Adler32.

This will perform a CPU feature detection at runtime to select the most optimal implementation for the current processor architecture.

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

Return the computed Adler-32 value.

pub fn is_simd_enabled(&self) -> bool[src]

Indicates whether the current implementation is SIMD-accelerated.

pub fn reset(&mut self)[src]

Reset the hash state.

pub fn update(&mut self, buf: &[u8])[src]

Process the given byte slice and update the hash state.

Trait Implementations

impl Clone for Adler32[src]

impl Copy for Adler32[src]

impl Debug for Adler32[src]

impl Default for Adler32[src]

impl From<u32> for Adler32[src]

impl Hasher for Adler32[src]

impl PartialEq<u32> for Adler32[src]

Auto Trait Implementations

impl RefUnwindSafe for Adler32

impl Send for Adler32

impl Sync for Adler32

impl Unpin for Adler32

impl UnwindSafe for Adler32

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.