Struct crc24::Crc24Hasher [] [src]

pub struct Crc24Hasher {
    // some fields omitted
}

CRC-24 hasher based on IETF RFC2440 specification.

Methods

impl Crc24Hasher
[src]

fn init(v: u32) -> Crc24Hasher

Creates a new CRC-24 hasher initialized with the given state.

fn new() -> Crc24Hasher

Creates a new CRC-24 hasher initialized with a nonzero state specified in RFC2440.

Trait Implementations

impl Eq for Crc24Hasher
[src]

impl PartialEq for Crc24Hasher
[src]

fn eq(&self, __arg_0: &Crc24Hasher) -> bool

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

fn ne(&self, __arg_0: &Crc24Hasher) -> bool

This method tests for !=.

impl Clone for Crc24Hasher
[src]

fn clone(&self) -> Crc24Hasher

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for Crc24Hasher
[src]

impl Default for Crc24Hasher
[src]

fn default() -> Crc24Hasher

Creates a new CRC-24 hasher initialized with a nonzero state specified in RFC2440.

impl Hasher for Crc24Hasher
[src]

fn finish(&self) -> u64

Completes a round of hashing, producing the output hash generated.

fn write(&mut self, msg: &[u8])

Writes some data into this Hasher

fn write_u8(&mut self, i: u8)
1.3.0

Write a single u8 into this hasher

fn write_u16(&mut self, i: u16)
1.3.0

Write a single u16 into this hasher.

fn write_u32(&mut self, i: u32)
1.3.0

Write a single u32 into this hasher.

fn write_u64(&mut self, i: u64)
1.3.0

Write a single u64 into this hasher.

fn write_usize(&mut self, i: usize)
1.3.0

Write a single usize into this hasher.

fn write_i8(&mut self, i: i8)
1.3.0

Write a single i8 into this hasher.

fn write_i16(&mut self, i: i16)
1.3.0

Write a single i16 into this hasher.

fn write_i32(&mut self, i: i32)
1.3.0

Write a single i32 into this hasher.

fn write_i64(&mut self, i: i64)
1.3.0

Write a single i64 into this hasher.

fn write_isize(&mut self, i: isize)
1.3.0

Write a single isize into this hasher.