peeking_take_while
crates.io v1.0.0903,295 weekly downloads · 0 Dependencies
Source data as of:
Summary
Like Iterator::takewhile, but calls the predicate on a peeked value. This allows you to use Iterator::byref and Iterator::takewhile together, and still get the first value for which the takewhile predicate returned false after dropping the byref.
cargo add peeking_take_while
- Ecosystemcrates.io
- Version1.0.0
- Weekly downloads903,295
- License—
- Dependencies0
- Last release2021-09-03
- First published2017-05-17
Registry values
Reproduced verbatim from the official registry, with the source named on each value.
Description
Like Iterator::takewhile, but calls the predicate on a peeked value. This allows you to use Iterator::byref and Iterator::takewhile together, and still get the first value for which the takewhile predicate returned false after dropping the byref.
Registry-supplied description, cleaned to plain text. Source: crates.io (Rust).
Show original (raw) description
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`.
Derived indices (computation method published)
Quanteta-computed from the registry values below. This is a derived index, not a measured registry metric. See the formula on the Data & Sources page.