1 2 3 4 5 6 7 8 9 10 11 12 13
use bounded_counter::BoundedCounter; fn main() { let counter = BoundedCounter::<i8>::default(); for i in counter { println!("{i}"); if i == i8::MAX { break; } } }