macro_rules! assert_le {
($left:expr, $right:expr $(,)?) => { ... };
($left:expr, $right:expr, $($arg:tt)+) => { ... };
}Expand description
Asserts that the left hand side expression is lesser than or equal to the right hand side expression
ยงExamples
let a = 200; let b = 100;
#[cfg(should_panic)]
assert_le!(a, b); // This would panic