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

Generates a collector trait with a given name

// gen_collector_trait!(FooCollector);
// generates the following trait
pub trait FooCollector {
   fn collect(&mut self, count: usize);
}