Macro array_to_struct

Source
macro_rules! array_to_struct {
    ($name:ident, $($args:ident),+) => { ... };
}
Expand description

Defines a struct to hold format strings, along with a constructor.

The constructor has the following function signature:

fn new(value: Vec<T>) -> Self

value must have the same number of elements as args passed to this macro, and new will panic otherwise.