Skip to main content

Module assert_any_lt_x

Module assert_any_lt_x 

Source
Expand description

Assert any element of an iterable is less than a value.

Pseudocode:
iter ∃ < x

§Example

use assertables::*;

let a = [1, 2];
let b = 3;
assert_any_lt_x!(a.iter(), b);

This implementation uses ::std::iter::Iterator.

§Module macros