pub fn increment() -> usize
Expand description

Increment counter, return the result.

Example

// Assuming the counter starts at 0
increment() // 1
increment() // 2
increment() // 3