#[macro_export]
macro_rules! impl_default_fixed_codec_for {
($category:ident, [$($type:ident),+]) => (
use crate::types::$category;
$(
impl FixedCodec for $category::$type {
fn encode_fixed(&self) -> ProtocolResult<bytes::Bytes> {
Ok(bytes::Bytes::from(rlp::encode(self)))
}
fn decode_fixed(bytes: bytes::Bytes) -> ProtocolResult<Self> {
Ok(rlp::decode(bytes.as_ref()).map_err(FixedCodecError::from)?)
}
}
)+
)
}