Files
zseri 186ce47e0d modernize crate
- bump rust edition to 2018
- remove an unnecessary `Debug` constraint
- provide an `size_hint` implementation
- get rid of unnecessary lifetime annotations
- add more test cases
- make crate no_std
- add forbid(unsafe_code) for good measure
- explain the non-fused behavoir and indicate possible side-effects of the iterator
2021-09-03 01:27:15 +02:00

16 lines
683 B
TOML

[package]
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
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`."
categories = ["no-std", "rust-patterns"]
edition = "2018"
keywords = ["iterator", "take_while", "peek", "by_ref"]
license = "MIT OR Apache-2.0"
name = "peeking_take_while"
readme = "./README.md"
repository = "https://github.com/fitzgen/peeking_take_while"
version = "1.0.0"
[badges]
[badges.travis-ci]
repository = "fitzgen/peeking_take_while"