register-count
Counting Register
s created by a Counter
Usage
This crate helps you to count the number of currently un-dropped Register
s created by a Counter
.
use Counter;
let cnt = new;
println!; // 0
let reg1 = cnt.reg;
println!; // 1
let reg2 = reg1.clone;
println!; // 2
drop;
println!; // 1
no_std
Opt-out of the default features to use this crate in no_std
environments.
License
MIT License