pub trait Counter<T> {
// Required methods
fn count(&mut self, input: &[u8]);
fn output(&self, collector: &mut T);
}
Expand description
Abstraction for wz’s stateful counters
This trait’s identity is the unit (()
) type
pub trait Counter<T> {
// Required methods
fn count(&mut self, input: &[u8]);
fn output(&self, collector: &mut T);
}
Abstraction for wz’s stateful counters
This trait’s identity is the unit (()
) type