2 releases
0.5.6 | Dec 23, 2024 |
---|---|
0.5.5 | Nov 8, 2024 |
#2246 in Procedural macros
207 downloads per month
Used in 8 crates
(via lattices)
59KB
1.5K
SLoC
tuple!
Macro
Create a tuple from a Variadic type known at compile time.
Example usage:
use variadics::var_expr;
use variadics_macro::tuple;
let tup = var_expr!(1, 2, 3, "four");
let a = tuple!(tup, 4);
assert_eq!(a, (1, 2, 3, "four"));
let tup = var_expr!(1, 2, var_expr!(3));
let b = tuple!(tup, 3);
assert_eq!(b, (1, 2, (3, ())));
Dependencies
~4MB
~70K SLoC