blob: 40aeef2d79c7de3347494ba9c6fc21076f6e8f49 [file] [log] [blame]
[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 = ["rust-patterns"]
keywords = ["iterator", "take_while", "peek", "by_ref"]
license = "Apache-2.0/MIT"
name = "peeking_take_while"
readme = "./README.md"
repository = "https://github.com/fitzgen/peeking_take_while"
version = "0.1.2"
[badges]
[badges.travis-ci]
repository = "fitzgen/peeking_take_while"