slippery-iter 0.1.2

Easy to use abstinential (slippery), N-peekable and rewindable wrapper over an iterator. (Nightly Rust)
Documentation
  • Coverage
  • 0%
    0 out of 49 items documented0 out of 43 items with examples
  • Size
  • Source code size: 22.17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.28 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ay0ks

Easy to use abstinential (slippery), N-peekable and rewindable wrapper over an iterator. (Nightly Rust)

Example:

use slippery_iter::{SlipperyIter, SlipperyIterator, IntoSlipperyIterator};

fn main() {
  let a = 0..=10;
  let mut b = SlipperyIter::from(a);
  println!("{:?}", b.peek_forward());
  println!("{:?}", b.peek_forward_many::<8>());
  println!("{:?}", b.consume_many::<6, 0>());
  println!("{:?}", b.peek_forward());
  println!("{:?}", b.peek_forward_many::<8>());
}