pub trait MlsEncode: MlsSize {
// Required method
fn mls_encode(&self, writer: &mut Vec<u8>) -> Result<(), Error>;
// Provided method
fn mls_encode_to_vec(&self) -> Result<Vec<u8>, Error> { ... }
}
Expand description
Trait to support serializing a type with MLS encoding.