Macro sized_byte_array

Source
macro_rules! sized_byte_array {
    (
        // Optional type metadata (e.g., docs).
        $(#[$meta:meta])*

        // Type name of the array
        $type_name:ident,

        // Fixed size of the array
        $array_size:expr
    ) => { ... };
}
Expand description

Macro which generates a new type a struct wrapping a fixed-size [u8] array, enabling sype-safe sharing.