[][src]Macro chek::ge

macro_rules! ge {
    ($left:expr, $right:expr $(,)?) => { ... };
    ($left:expr, $right:expr, $($msg_args:tt)+) => { ... };
}

Panics if the first expression is not strictly greater_or_equal than the second.

Requires that the values implement PartialOrd and Debug.

Note: is also aliased as chek::greater_or_equal!. A debug-only version is available as chek::debug_ge!.

Optionally may take an additional message to display on failure, which is formatted using standard format syntax.

Example

chek::ge!(4, 3);
chek::ge!(4, 4);
chek::ge!(4, 3, "With a message");
chek::ge!(4, 3, "With a formatted message: {}", "oh no");