Documentation
  • Coverage
  • 50%
    2 out of 4 items documented1 out of 4 items with examples
  • Size
  • Source code size: 5.11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • lperlaki/shared-iter-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lperlaki

Shared Iter

Clone an Iterator and shared it accros threads

use shared_iter::ShareIterator;

let iter1 = (1..20).share();
let iter2 = iter1.clone();

assert_eq!(iter1.take(10).collect::<Vec<_>>(), iter2.take(10).collect::<Vec<_>>());