Struct crc32c_hw::Digest [] [src]

pub struct Digest(_);

Implements Hasher trait and usually represent state that is changed while hashing data.

Example

use crc32c_hw::Digest;
use std::hash::Hasher;

let mut s = Digest::new(0);
s.write(b"123");
s.write(b"456");
s.write(b"789");

assert_eq!(s.finish(), 0xe3069283);

Methods

impl Digest
[src]

[src]

Creates new digest with CRC32C value.

Trait Implementations

impl Debug for Digest
[src]

[src]

Formats the value using the given formatter.

impl Default for Digest
[src]

[src]

Returns the "default value" for a type. Read more

impl Copy for Digest
[src]

impl Clone for Digest
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Digest
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Digest
[src]

impl Hasher for Digest
[src]

[src]

Writes some data into this Hasher. Read more

[src]

Returns the hash value for the values written so far. Read more

1.3.0
[src]

Writes a single u8 into this hasher.

1.3.0
[src]

Writes a single u16 into this hasher.

1.3.0
[src]

Writes a single u32 into this hasher.

1.3.0
[src]

Writes a single u64 into this hasher.

[src]

🔬 This is a nightly-only experimental API. (i128)

Writes a single u128 into this hasher.

1.3.0
[src]

Writes a single usize into this hasher.

1.3.0
[src]

Writes a single i8 into this hasher.

1.3.0
[src]

Writes a single i16 into this hasher.

1.3.0
[src]

Writes a single i32 into this hasher.

1.3.0
[src]

Writes a single i64 into this hasher.

[src]

🔬 This is a nightly-only experimental API. (i128)

Writes a single i128 into this hasher.

1.3.0
[src]

Writes a single isize into this hasher.