multi_iter

Crates.iomulti_iter
lib.rsmulti_iter
version0.1.6
sourcesrc
created_at2023-03-18 03:00:28.954779
updated_at2023-03-18 23:18:33.414013
descriptionIterator for acting on multiple elements at a time
homepage
repositoryhttps://github.com/mklifo/multi_iter
max_upload_size
id813484
size20,226
(mklifo)

documentation

README

CI crates.io

multi_iter

Iterator for acting on multiple elements at a time.

Features

  1. Peek multiple elements with:

    • peek_n
    • peek_rest
  2. Advance in windows by using:

    • next_n
    • next_n_if_each
    • next_n_if_slice
  3. Collect with zero allocations using:

    • remaining
    • remaining_if
    • remaining_if_slice

Installation

[dependencies]
multi_iter = "0.1.6"

No-std support

It is possible to use this crate without the Rust standard library. Disable the default "std" feature by doing the following:

[dependencies]
multi_iter = { version = "0.1.6", default-features = false }
Commit count: 9

cargo fmt