Macro luminance::gtup
[−]
[src]
macro_rules! gtup { (:$($a:tt)*) => { ... }; ($($a:tt)*) => { ... }; }
Generalized free tuple macro.
If your compiler supports the type_macros
feature, you can use this macro to create tuples
without the syntactic nesting boilerplate.
Furthermore, you can create values with this macro as well.
Examples
// type type Foo = GTup<i32, Chain<bool, f32>>; type Zoo = gtup!(:i32, bool, f32); // exactly the same type // value let triple = gtup!(42, false, 3.1415);