#iterator #assert #in-place

iterator-assertions

Assert something about an iterator in place

1 unstable release

0.1.0 Aug 21, 2023

#1475 in Development tools

Custom license

6KB

iterator-assertions

paypal

Assert something about an iterator in place.

let vector = vec![1, 2, 3]
    .assert(|i| i.is_empty().not())
    .assert(|i| i.len() < 5);

No runtime deps