DigestIncrementalBase

Trait DigestIncrementalBase 

Source
pub trait DigestIncrementalBase {
    type IncrementalState: InitializeDigestState;

    // Required methods
    fn reset(state: &mut Self::IncrementalState);
    fn update(
        state: &mut Self::IncrementalState,
        payload: &[u8],
    ) -> Result<(), UpdateError>;
}
Expand description

Base trait for incremental functionality.

Traits that are built on top of this trait:

Required Associated Types§

Required Methods§

Source

fn reset(state: &mut Self::IncrementalState)

Reset the digest state.

Source

fn update( state: &mut Self::IncrementalState, payload: &[u8], ) -> Result<(), UpdateError>

Update the digest state with the payload.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§