[][src]Macro chek::lt

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

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

Requires that the values implement PartialOrd and Debug.

Note: is also aliased as chek::less!. A debug-only version is available as chek::debug_lt!.

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

Example

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