[][src]Macro totems::assert_ge

macro_rules! assert_ge {
    ($left:expr, $right:expr) => { ... };
    ($left:expr, $right:expr,) => { ... };
    ($left:expr, $right:expr, $($arg:tt)+) => { ... };
}

Asserts (left >= right).

Parameters

  • left The left operand of the comparison.
  • right The right operand of the comparison.

Dependencies

  • All content must implement Debug
  • left and right must be at least PartialOrd

Example

use totems::assert_ge;
let x = 5;
let y = 4;
assert_ge!(x, y)

Example Error Messages

thread 'inequalities::ge::incorrect' panicked at 'assertion failed: `(left >= right)`
  left: `5`,
 right: `6`', src/inequalities.rs:320:9