macro_rules! impl_meta_tuple {
($ty: ident) => { ... };
($ty: ident [$($a: tt)*]) => { ... };
([$($a: tt)*]$ty: ident [$($b: tt)*]) => { ... };
}Expand description
Implement MetaTuple for a type and by proxy IntoMetaTuple, making it equivalent to MetaItem<T>.
This is useful to satisfy API constraints.
ยงSyntax
This is equivalent to a derive macro.
// Equivalent to impl MetaTuple for MyType {}
impl_meta_tuple!(MyType)
// Equivalent to impl<T: Copy> MetaTuple for MyType <T> {}
impl_meta_tuple!([T: Copy]MyType[T])