Macro impl_encoding

Source
macro_rules! impl_encoding {
    ($id:literal, $code:expr, $Name:ident, $Metadata:ty) => { ... };
}
Expand description

Macro to generate all the necessary code for a new type of array encoding. Including:

  1. New Array type that implements AsRef<Array>, GetArrayMetadata, ToArray, IntoArray, and multiple useful From/TryFrom implementations.
  2. New Encoding type that implements ArrayEncoding.
  3. New metadata type that implements ArrayMetadata.