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]
Trait Implementations
impl Debug for Digest
[src]
impl Default for Digest
[src]
impl Copy for Digest
[src]
impl Clone for Digest
[src]
fn clone(&self) -> Digest
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Digest
[src]
fn eq(&self, __arg_0: &Digest) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Digest) -> bool
[src]
This method tests for !=
.
impl Eq for Digest
[src]
impl Hasher for Digest
[src]
fn write(&mut self, buf: &[u8])
[src]
Writes some data into this Hasher
. Read more
fn finish(&self) -> u64
[src]
Returns the hash value for the values written so far. Read more
fn write_u8(&mut self, i: u8)
1.3.0[src]
Writes a single u8
into this hasher.
fn write_u16(&mut self, i: u16)
1.3.0[src]
Writes a single u16
into this hasher.
fn write_u32(&mut self, i: u32)
1.3.0[src]
Writes a single u32
into this hasher.
fn write_u64(&mut self, i: u64)
1.3.0[src]
Writes a single u64
into this hasher.
fn write_u128(&mut self, i: u128)
[src]
i128
)Writes a single u128
into this hasher.
fn write_usize(&mut self, i: usize)
1.3.0[src]
Writes a single usize
into this hasher.
fn write_i8(&mut self, i: i8)
1.3.0[src]
Writes a single i8
into this hasher.
fn write_i16(&mut self, i: i16)
1.3.0[src]
Writes a single i16
into this hasher.
fn write_i32(&mut self, i: i32)
1.3.0[src]
Writes a single i32
into this hasher.
fn write_i64(&mut self, i: i64)
1.3.0[src]
Writes a single i64
into this hasher.
fn write_i128(&mut self, i: i128)
[src]
i128
)Writes a single i128
into this hasher.
fn write_isize(&mut self, i: isize)
1.3.0[src]
Writes a single isize
into this hasher.