beetle-iter 0.1.1

A collection of basic iterators.
Documentation
  • Coverage
  • 98%
    49 out of 50 items documented0 out of 48 items with examples
  • Size
  • Source code size: 3.92 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 13.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Mearkatz/beetle-iter
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Mearkatz

What is this ?

This library aims to be a collection of iterators for improved performance or convenience.

StepRangeU* and StepRangeI*

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);