Macro all_asserts::assert_le
source · [−]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