Trait Counter

Source
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

Required Methods§

Source

fn count(&mut self, input: &[u8])

Source

fn output(&self, collector: &mut T)

Implementations on Foreign Types§

Source§

impl<T> Counter<T> for ()

Source§

fn count(&mut self, _: &[u8])

Source§

fn output(&self, _: &mut T)

Implementors§