Struct mx3::Mx3Hasher [−][src]
pub struct Mx3Hasher { /* fields omitted */ }
Hasher for computing a hash digest of a stream of bytes.
This hasher is not cryptographically secure.
Implementations
impl Mx3Hasher
[src]
impl Mx3Hasher
[src]pub fn new(seed: u64) -> Self
[src]
Construct a hasher with the given seed for a stream of bytes.
This constructor is not compatible with the reference design due to the length of the stream being unknown.
pub fn new_with_length(seed: u64, buffer_len: usize) -> Self
[src]
Construct a hasher with the given seed and stream length.
This constructor allows compatibility with the reference design. If you
are simply hashing a slice, consider using the shorter hash()
function instead.
Trait Implementations
impl Hasher for Mx3Hasher
[src]
impl Hasher for Mx3Hasher
[src]fn write(&mut self, bytes: &[u8])
[src]
fn finish(&self) -> u64
[src]
pub fn write_u8(&mut self, i: u8)
1.3.0[src]
pub fn write_u16(&mut self, i: u16)
1.3.0[src]
pub fn write_u32(&mut self, i: u32)
1.3.0[src]
pub fn write_u64(&mut self, i: u64)
1.3.0[src]
pub fn write_u128(&mut self, i: u128)
1.26.0[src]
pub fn write_usize(&mut self, i: usize)
1.3.0[src]
pub fn write_i8(&mut self, i: i8)
1.3.0[src]
pub fn write_i16(&mut self, i: i16)
1.3.0[src]
pub fn write_i32(&mut self, i: i32)
1.3.0[src]
pub fn write_i64(&mut self, i: i64)
1.3.0[src]
pub fn write_i128(&mut self, i: i128)
1.26.0[src]
pub fn write_isize(&mut self, i: isize)
1.3.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Mx3Hasher
impl RefUnwindSafe for Mx3Hasher
impl UnwindSafe for Mx3Hasher
impl UnwindSafe for Mx3Hasher