licenses.dev

peeking_take_while v0.1.2

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`.

Published on

Licenses

Learn more about license information.

Package Licenses

Apache-2.0 OR MIT

Dependency Licenses

This package has no dependencies.
Last updated on

Copy the licenses badge code for the latest version:

[![licenses](https://licenses.dev/b/cargo/peeking_take_while)](https://licenses.dev/cargo/peeking_take_while)
<a href="https://licenses.dev/cargo/peeking_take_while">
  <img src="https://licenses.dev/b/cargo/peeking_take_while" alt="licenses" />
</a>

Or the licenses badge code for the 0.1.2 version:

[![licenses](https://licenses.dev/b/cargo/peeking_take_while/0.1.2)](https://licenses.dev/cargo/peeking_take_while/0.1.2)
<a href="https://licenses.dev/cargo/peeking_take_while/0.1.2">
  <img src="https://licenses.dev/b/cargo/peeking_take_while/0.1.2" alt="licenses" />
</a>
GitHub