Crates.io | iterator-assertions |
lib.rs | iterator-assertions |
version | 0.1.0 |
source | src |
created_at | 2023-08-21 22:16:35.922825 |
updated_at | 2023-08-21 22:16:35.922825 |
description | Assert something about an iterator in place. |
homepage | |
repository | https://github.com/RHamalainen/iterator-assertions |
max_upload_size | |
id | 950559 |
size | 14,687 |
Assert something about an iterator in place.
let vector = vec![1, 2, 3]
.assert(|i| i.is_empty().not())
.assert(|i| i.len() < 5);