[][src]Struct smbus_pec::Pec

pub struct Pec { /* fields omitted */ }

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

impl Pec[src]

pub fn new() -> Self[src]

Create new instance

Trait Implementations

impl Hasher for Pec[src]

Auto Trait Implementations

impl Send for Pec

impl Sync for Pec

impl Unpin for Pec

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.