crates.io
peeking_take_while
Like `Iterator::take_while`, but calls the predicate on a peeked value. This allows you to use `Iterator::by_ref` and `Iterator::take_while` together, and still get the first value for which the `take_while` predicate returned false after dropping the `by_ref`.
Repository
https://github.com/fitzgen/peeking_take_while ↗Sourced from crates.io · Updated August 13, 2026
Package metadata from crates.io, the Rust community's crate registry.
View original source ↗Spot an error on this page? Let us know →FAQ
Common questions
What is peeking_take_while?
Like `Iterator::take_while`, but calls the predicate on a peeked value. This allows you to use `Iterator::by_ref` and `Iterator::take_while` together, and still get the first value for which the `take_while` predicate returned false after dropping the `by_ref`.
Is peeking_take_while safe to use?
No vulnerability data has been synced for peeking_take_while yet.
What license does peeking_take_while use?
peeking_take_while does not specify a license.