pub trait Unit:
Clone
+ Sized
+ Zeroize {
// Required methods
fn write(bunch: &[Self], w: &mut impl Write) -> Result<(), Error>;
fn read(r: &mut impl Read, bunch: &mut [Self]) -> Result<(), Error>;
}
Expand description
Basic units over which a sponge operates.
We require the units to have a precise size in memory, to be cloneable, and that we can zeroize them.
Required Methods§
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.