[][src]Struct crc32_digest::Crc32

pub struct Crc32(_);

Wraps a Hasher and provides it with Digest and DynDigest implementations.

Methods

impl Crc32[src]

pub fn new() -> Self[src]

Creates a new Crc32.

pub fn from_state(state: u32) -> Self[src]

Creates a new Crc32 initialized with the given state.

Trait Implementations

impl Clone for Crc32[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Crc32[src]

impl Input for Crc32[src]

fn chain<B>(self, data: B) -> Self where
    B: AsRef<[u8]>, 
[src]

Digest input data in a chained manner.

impl Reset for Crc32[src]

impl FixedOutput for Crc32[src]

type OutputSize = U4

Auto Trait Implementations

impl Send for Crc32

impl Sync for Crc32

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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

impl<D> Digest for D where
    D: Input + FixedOutput + Reset + Clone + Default
[src]

type OutputSize = <D as FixedOutput>::OutputSize

impl<T> Same<T> for T

type Output = T

Should always be Self