macro_rules! trait_bound {
($name:ident ; $head:path $(, $tail:path)*) => { ... };
}
Expand description
Reuse a list of trait bounds by giving it a name, e.g. trait_bound!(CopyAndDefault; Copy, Default);
macro_rules! trait_bound {
($name:ident ; $head:path $(, $tail:path)*) => { ... };
}
Reuse a list of trait bounds by giving it a name, e.g. trait_bound!(CopyAndDefault; Copy, Default);