macro_rules! impl_encoding {
($id:literal, $code:expr, $Name:ident) => { ... };
}
Expand description
Macro to generate all the necessary code for a new type of array encoding. Including:
- New Array type that implements
AsRef<ArrayData>
,GetArrayMetadata
,ToArray
,IntoArray
, and multiple usefulFrom
/TryFrom
implementations. - New Encoding type that implements
ArrayEncoding
. - New metadata type that implements
ArrayMetadata
.