Macro all_asserts::assert_range
source · [−]macro_rules! assert_range {
($left:expr, $right:expr) => { ... };
($left:expr, $right:expr, $($arg:tt)+) => { ... };
}
Expand description
Asserts that the right hand side expression is within the range on the left hand side
Examples
assert_range!((100..200), 101);