{"crate":{"id":"peeking_take_while","name":"peeking_take_while","updated_at":"2021-09-03T17:58:50.443671Z","versions":[421380,53591,53518,53517],"keywords":["peek","by_ref","take_while","iterator"],"categories":["rust-patterns","no-std"],"badges":[],"created_at":"2017-05-17T00:42:53.962618Z","downloads":133660041,"recent_downloads":10053091,"default_version":"1.0.0","num_versions":4,"yanked":false,"max_version":"1.0.0","newest_version":"1.0.0","max_stable_version":"1.0.0","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`.","homepage":null,"documentation":null,"repository":"https://github.com/fitzgen/peeking_take_while","links":{"version_downloads":"/api/v1/crates/peeking_take_while/downloads","versions":null,"owners":"/api/v1/crates/peeking_take_while/owners","owner_team":"/api/v1/crates/peeking_take_while/owner_team","owner_user":"/api/v1/crates/peeking_take_while/owner_user","reverse_dependencies":"/api/v1/crates/peeking_take_while/reverse_dependencies"},"exact_match":false,"trustpub_only":false},"versions":[{"id":421380,"crate":"peeking_take_while","num":"1.0.0","dl_path":"/api/v1/crates/peeking_take_while/1.0.0/download","readme_path":"/api/v1/crates/peeking_take_while/1.0.0/readme","updated_at":"2021-09-03T17:58:50.443671Z","created_at":"2021-09-03T17:58:50.443671Z","downloads":9109616,"features":{},"yanked":false,"yank_message":null,"lib_links":null,"license":"MIT OR Apache-2.0","links":{"dependencies":"/api/v1/crates/peeking_take_while/1.0.0/dependencies","version_downloads":"/api/v1/crates/peeking_take_while/1.0.0/downloads","authors":"/api/v1/crates/peeking_take_while/1.0.0/authors"},"crate_size":7754,"published_by":{"id":696,"login":"fitzgen","name":"Nick Fitzgerald","avatar":"https://avatars.githubusercontent.com/u/74571?v=4","url":"https://github.com/fitzgen","github_username_matches":true,"created_at":"2009-04-16T21:38:22Z"},"audit_actions":[{"action":"publish","user":{"id":696,"login":"fitzgen","name":"Nick Fitzgerald","avatar":"https://avatars.githubusercontent.com/u/74571?v=4","url":"https://github.com/fitzgen","github_username_matches":true,"created_at":"2009-04-16T21:38:22Z"},"time":"2021-09-03T17:58:50.443671Z"}],"checksum":"9e9ed2178b0575fff8e1b83b58ba6f75e727aafac2e1b6c795169ad3b17eb518","rust_version":null,"has_lib":true,"bin_names":[],"edition":"2018","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`.","homepage":null,"documentation":null,"repository":"https://github.com/fitzgen/peeking_take_while","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":120,"comment_lines":3,"files":1}},"total_code_lines":120,"total_comment_lines":3}},{"id":53591,"crate":"peeking_take_while","num":"0.1.2","dl_path":"/api/v1/crates/peeking_take_while/0.1.2/download","readme_path":"/api/v1/crates/peeking_take_while/0.1.2/readme","updated_at":"2017-11-30T03:18:56.817621Z","created_at":"2017-05-17T18:38:02.585629Z","downloads":124392766,"features":{},"yanked":false,"yank_message":null,"lib_links":null,"license":"Apache-2.0/MIT","links":{"dependencies":"/api/v1/crates/peeking_take_while/0.1.2/dependencies","version_downloads":"/api/v1/crates/peeking_take_while/0.1.2/downloads","authors":"/api/v1/crates/peeking_take_while/0.1.2/authors"},"crate_size":6697,"published_by":null,"audit_actions":[],"checksum":"19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099","rust_version":null,"has_lib":true,"bin_names":[],"edition":null,"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`.","homepage":null,"documentation":null,"repository":"https://github.com/fitzgen/peeking_take_while","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":41,"comment_lines":0,"files":1}},"total_code_lines":41,"total_comment_lines":0}},{"id":53518,"crate":"peeking_take_while","num":"0.1.1","dl_path":"/api/v1/crates/peeking_take_while/0.1.1/download","readme_path":"/api/v1/crates/peeking_take_while/0.1.1/readme","updated_at":"2017-11-30T04:15:48.085200Z","created_at":"2017-05-17T00:45:39.981150Z","downloads":3712,"features":{},"yanked":false,"yank_message":null,"lib_links":null,"license":"Apache-2.0/MIT","links":{"dependencies":"/api/v1/crates/peeking_take_while/0.1.1/dependencies","version_downloads":"/api/v1/crates/peeking_take_while/0.1.1/downloads","authors":"/api/v1/crates/peeking_take_while/0.1.1/authors"},"crate_size":2309,"published_by":null,"audit_actions":[],"checksum":"7386039c691c7d6e346ee353ebd10301f0df0ba0b542a6cfb5ef0c7b0ff70ce7","rust_version":null,"has_lib":true,"bin_names":[],"edition":null,"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`.","homepage":null,"documentation":null,"repository":"https://github.com/fitzgen/peeking_take_while","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":47,"comment_lines":0,"files":1}},"total_code_lines":47,"total_comment_lines":0}},{"id":53517,"crate":"peeking_take_while","num":"0.1.0","dl_path":"/api/v1/crates/peeking_take_while/0.1.0/download","readme_path":"/api/v1/crates/peeking_take_while/0.1.0/readme","updated_at":"2017-11-30T04:15:47.861706Z","created_at":"2017-05-17T00:42:53.962618Z","downloads":3051,"features":{},"yanked":false,"yank_message":null,"lib_links":null,"license":"Apache-2.0/MIT","links":{"dependencies":"/api/v1/crates/peeking_take_while/0.1.0/dependencies","version_downloads":"/api/v1/crates/peeking_take_while/0.1.0/downloads","authors":"/api/v1/crates/peeking_take_while/0.1.0/authors"},"crate_size":2324,"published_by":null,"audit_actions":[],"checksum":"153c6fa2922510a08cb9c5f34f5732d2f39c5ec22dfa7cfbd624cb1db72f458d","rust_version":null,"has_lib":true,"bin_names":[],"edition":null,"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`.","homepage":null,"documentation":null,"repository":"https://github.com/fitzgen/peeking_take_while","trustpub_data":null,"linecounts":{"languages":{"Rust":{"code_lines":47,"comment_lines":0,"files":1}},"total_code_lines":47,"total_comment_lines":0}}],"keywords":[{"id":"peek","keyword":"peek","created_at":"2015-01-10T22:21:22.746822Z","crates_cnt":32},{"id":"by_ref","keyword":"by_ref","created_at":"2017-05-17T00:42:53.962618Z","crates_cnt":1},{"id":"take_while","keyword":"take_while","created_at":"2017-05-17T00:42:53.962618Z","crates_cnt":1},{"id":"iterator","keyword":"iterator","created_at":"2014-11-25T00:20:54.541104Z","crates_cnt":424}],"categories":[{"id":"rust-patterns","category":"Rust patterns","slug":"rust-patterns","description":"Shared solutions for particular situations specific to programming in Rust.","created_at":"2017-01-17T19:13:05.112025Z","crates_cnt":4284},{"id":"no-std","category":"No standard library","slug":"no-std","description":"Crates that are able to function without the Rust standard library.","created_at":"2017-02-10T01:52:09.447906Z","crates_cnt":13676}]}