[][src]Macro chek::greater_or_equal

macro_rules! greater_or_equal {
    ($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::ge!. A debug-only version is available as chek::debug_greater_or_equal!.

On failure, panics and prints the values out in a manner similar to prelude's assert_eq!.

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

Example

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