Macro lazybar_core::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>) -> Selfvalue must have the same number of elements as args passed to this
macro, and new will panic otherwise.