Trait hpke::Serializable
source · pub trait Serializable {
type OutputSize: ArrayLength<u8>;
// Required method
fn to_bytes(&self) -> GenericArray<u8, Self::OutputSize>;
// Provided method
fn size() -> usize { ... }
}
Expand description
Implemented by types that have a fixed-length byte representation
Required Associated Types§
type OutputSize: ArrayLength<u8>
Required Methods§
fn to_bytes(&self) -> GenericArray<u8, Self::OutputSize>
Provided Methods§
Object Safety§
This trait is not object safe.