macro_rules! assert_le {
($left:expr, $right:expr) => { ... };
($left:expr, $right:expr,) => { ... };
($left:expr, $right:expr, $($arg:tt)+) => { ... };
}Expand description
Asserts (left <= right).
§Parameters
leftThe left operand of the comparison.rightThe right operand of the comparison.
§Dependencies
- All content must implement Debug
leftandrightmust be at least PartialOrd
§Example
use totems::assert_le;
let x = 4;
let y = 5;
assert_le!(x, y)§Example Error Messages
thread 'inequalities::le::incorrect' panicked at 'assertion failed: `(left <= right)`
left: `6`,
right: `5`', src/inequalities.rs:270:9