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§
Sourcetype IncrementalState: InitializeDigestState
type IncrementalState: InitializeDigestState
The digest state.
Required Methods§
Sourcefn reset(state: &mut Self::IncrementalState)
fn reset(state: &mut Self::IncrementalState)
Reset the digest state.
Sourcefn update(
state: &mut Self::IncrementalState,
payload: &[u8],
) -> Result<(), UpdateError>
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.