pub trait Update {
    // Required method
    fn update(&mut self, data: &[u8]);

    // Provided method
    fn chain(self, data: impl AsRef<[u8]>) -> Self
       where Self: Sized { ... }
}
Expand description

Types which consume data with byte granularity.

Required Methods§

source

fn update(&mut self, data: &[u8])

Update state using the provided data.

Provided Methods§

source

fn chain(self, data: impl AsRef<[u8]>) -> Selfwhere Self: Sized,

Digest input data in a chained manner.

Implementations on Foreign Types§

source§

impl<D> Update for SimpleHmac<D>where D: Digest + BlockSizeUser,

source§

fn update(&mut self, data: &[u8])

source§

impl Update for Hash256

source§

fn update(&mut self, data: &[u8])

source§

impl Update for Hash160

source§

fn update(&mut self, data: &[u8])

Implementors§