Expand description
Provides macros for implementing traits on variadic types.
Macros§
- all_
tuples - Helper macro to generate tuple pyramids. Useful to generate scaffolding to work around Rust
lacking variadics. Invoking
all_tuples!(impl_foo, start, end, P, Q, ..)invokesimpl_fooproviding ident tuples through aritystart..end. If you require the length of the tuple, seeall_tuples_with_size!. - all_
tuples_ enumerated - A variant of
all_tuples!that enumerates its output. - all_
tuples_ with_ size - Helper macro to generate tuple pyramids with their length. Useful to generate scaffolding to
work around Rust lacking variadics. Invoking
all_tuples_with_size!(impl_foo, start, end, P, Q, ..)invokesimpl_fooproviding ident tuples through aritystart..endpreceded by their length. If you don’t require the length of the tuple, seeall_tuples!.