Trait Counter

Source
pub trait Counter:
    Send
    + Sync
    + Debug
    + DynClone {
    // Required method
    fn add(&self, amount: usize);
}
Expand description

An ever-incrementing counter

Required Methods§

Source

fn add(&self, amount: usize)

Add a value to the counter

Implementors§