pub trait SpongeExt: CryptographicSponge {
type State: Clone;
// Required methods
fn from_state(state: Self::State, params: &Self::Parameters) -> Self;
fn into_state(self) -> Self::State;
}Expand description
An extension for the interface of a cryptographic sponge.
In addition to operations defined in CryptographicSponge, SpongeExt can convert itself to
a state, and instantiate itself from state.
Required Associated Types§
Required Methods§
Sourcefn from_state(state: Self::State, params: &Self::Parameters) -> Self
fn from_state(state: Self::State, params: &Self::Parameters) -> Self
Returns a sponge that uses state.
Sourcefn into_state(self) -> Self::State
fn into_state(self) -> Self::State
Consumes self and returns the state.
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.