Struct smbus_pec::Pec [−][src]
pub struct Pec { /* fields omitted */ }
Expand description
Calculate SMBus Packet Error Code over transmitted data. core::hash::Hasher
implementation.
The input data array must contain the complete message including address and read/write bit.
Note that the hasher holds an internal state so that it is possible to call write()
several times. A new instance must be created for each independent calculation.
Implementations
Trait Implementations
impl Hasher for Pec
[src]
impl Hasher for Pec
[src]fn write_u128(&mut self, i: u128)
1.26.0[src]
fn write_u128(&mut self, i: u128)
1.26.0[src]Writes a single u128
into this hasher.
fn write_usize(&mut self, i: usize)
1.3.0[src]
fn write_usize(&mut self, i: usize)
1.3.0[src]Writes a single usize
into this hasher.
fn write_i128(&mut self, i: i128)
1.26.0[src]
fn write_i128(&mut self, i: i128)
1.26.0[src]Writes a single i128
into this hasher.
fn write_isize(&mut self, i: isize)
1.3.0[src]
fn write_isize(&mut self, i: isize)
1.3.0[src]Writes a single isize
into this hasher.