noalloc_vec_rs/
assert.rs

1#[macro_export]
2macro_rules! assert_lt {
3    ($left:expr, $right:expr) => {
4        assert!(
5            $left < $right,
6            "Left operand should be inferior to right operand"
7        )
8    };
9}
10
11#[macro_export]
12macro_rules! assert_lte {
13    ($left:expr, $right:expr) => {
14        assert!(
15            $left <= $right,
16            "Left operand should be inferior or equal to right operand"
17        )
18    };
19}
20
21#[macro_export]
22macro_rules! assert_gt {
23    ($left:expr, $right:expr) => {
24        assert!(
25            $left > $right,
26            "Left operand should be superior to right operand"
27        )
28    };
29}
30
31#[macro_export]
32macro_rules! assert_gte {
33    ($left:expr, $right:expr) => {
34        assert!(
35            $left >= $right,
36            "Left operand should be superior or equal to right operand"
37        )
38    };
39}