pub trait RawPadding {
const TYPE: PadType;
// Required methods
fn raw_pad(block: &mut [u8], pos: usize);
fn raw_unpad(block: &[u8]) -> Result<&[u8], UnpadError>;
}
Expand description
Trait for padding messages divided into blocks of arbitrary size
Required Associated Constants§
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.