Chih-Hung Hsieh | 481287d | 2020-04-16 10:44:21 -0700 | [diff] [blame] | 1 | [package] |
| 2 | authors = ["Nick Fitzgerald <fitzgen@gmail.com>"] |
| 3 | 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`." |
| 4 | categories = ["rust-patterns"] |
| 5 | keywords = ["iterator", "take_while", "peek", "by_ref"] |
| 6 | license = "Apache-2.0/MIT" |
| 7 | name = "peeking_take_while" |
| 8 | readme = "./README.md" |
| 9 | repository = "https://github.com/fitzgen/peeking_take_while" |
| 10 | version = "0.1.2" |
| 11 | |
| 12 | [badges] |
| 13 | [badges.travis-ci] |
| 14 | repository = "fitzgen/peeking_take_while" |