7 releases
| 0.1.6 | Mar 18, 2023 |
|---|---|
| 0.1.5 | Mar 18, 2023 |
#1856 in Algorithms
75 downloads per month
19KB
287 lines
multi_iter
Iterator for acting on multiple elements at a time.
Features
-
Peek multiple elements with:
peek_npeek_rest
-
Advance in windows by using:
next_nnext_n_if_eachnext_n_if_slice
-
Collect with zero allocations using:
remainingremaining_ifremaining_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 }
lib.rs:
This crate provides an iterator which can act on multiple elements at once without any
allocations. Its functions are similar to std::iter::Iterator.