wrapped-list
This crate provides the wrapped_list! macro which allows you to create a list of elements that are wrapped by an object, function, or another macro at compile time.
wrapped_list!
Evaluates to:
With this you can:
- Wrap values with a tuple struct or enum
- Wrap values with an object or function
- Wrap values with a macro
Examples
Wrap values with a tuple struct or enum
use wrapped_list;
;
let wrapped_items = wrapped_list!;
assert_eq!;
Wrap values with an object or function
use wrapped_list;
let boxed_items = wrapped_list!;
assert_eq!
use wrapped_list;
let func = ;
let doubled = wrapped_list!;
assert_eq!;
Wrap values with a macro
use wrapped_list;
let one_more = wrapped_list!;
assert_eq!;