luminance::chain!
[−]
[src]
macro_rules! chain { ($t:ty) => { ... }; ($a:ty, $($r:tt)*) => { ... }; }
If your compiler supports the type_macros
feature, you can use this macro to create chains
without the syntactic nesting boilerplate.
Examples
type Foo = Chain<i32,Chain<bool,f32>>; type Zoo = chain![i32, bool, f32]; // exactly the same type