macro_rules! impl_collector_usize {
    ( $($name:ty), *) => { ... };
}
Expand description

Implements a collector trait for usize

pub trait FooCollector {
   fn collect(&mut self, count: usize);
}
//  impl_collector_usize(FooCollector);
// generates the following impl block
impl FooCollector for usize {
    fn collect(&mut self, count: usize) {
        *self = count;
    }
}