Struct bobbytables::Counter [] [src]

pub struct Counter { /* fields omitted */ }

The public Counter structure which contains the inner mutable state. This allows us to put this straight into an Arc and safely share between threads

Methods

impl Counter
[src]

Create a new counter, which is has an UnsafeCell wrapping the actual counter implementation.

Extract the mutable reference to the counter implementation and increment the given key.

Extract the mutable reference to the counter implementation and return the current counter value for the given key.

Trait Implementations

impl<'a> IntoIterator for &'a Counter
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl Sync for Counter
[src]

impl Send for Counter
[src]