| Crates.io | beetle-iter |
| lib.rs | beetle-iter |
| version | 0.1.1 |
| created_at | 2023-10-18 12:17:55.979446+00 |
| updated_at | 2023-10-18 13:02:51.161323+00 |
| description | A collection of basic iterators. |
| homepage | |
| repository | https://github.com/Mearkatz/beetle-iter |
| max_upload_size | |
| id | 1006698 |
| size | 4,239 |
This library aims to be a collection of iterators for improved performance or convenience.
These are equivalent to ranges but with a constant step size.
Variants exist for u8, u32, i8, isize, etc.
// The odd positive integers from 1 to 1000 the traditional way.
let _ = (1..1000).step_by(2);
// The odd positive integers from 1 to 1000 with a constant step size.
let _ = StepRangeU64::<2>::new(1, 1000);
// If you really want to you can also do this... but don't.
let _ = StepRangeU64::<1>::new(1, 1000).step_by(2);