macro_rules! generate_bytes_representation {
    ($type:ty, $length:tt, $new_type:ident) => { ... };
}
Expand description

Macro for generating a new alias for BytesRepresentation with the given $length, and From functions for both directions.

  • $type - the source type.
  • $length - byte length of the source type when serialized using bincode.
  • $new_type - the alias name.