vec-iter 0.1.1

Lazy collection of iterated element, implementing iterators for random access
Documentation
  • Coverage
  • 88.89%
    8 out of 9 items documented3 out of 9 items with examples
  • Size
  • Source code size: 7.95 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.79 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • A4-Tacks/vec-iter-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • A4-Tacks

Lazy collection of iterated element, implementing iterators for random access

Examples

use vec_iter::IterVecIterExt;

let mut iter = [0, 1, 2, 3, 4].into_iter().vec_iter();

assert_eq!(iter.next(), Some(0));
assert_eq!(*iter, [0]);
assert_eq!(iter.nth(1), Some(2));
assert_eq!(*iter, [0, 1, 2]);
assert_eq!(iter[1], 1);
assert_eq!(iter.get_req(3), Some(&3));
assert_eq!(*iter, [0, 1, 2, 3]);
assert_eq!(iter.into_all_collected(), [0, 1, 2, 3, 4]);