Macro counting_macros::counter_create
source · [−]counter_create!() { /* proc-macro */ }Expand description
Create new counter.
This counter begins with a value of 0, if you want to change it use counter_set!.
counter_create!(count);
assert_eq!(counter_incr!(count), 0);