Macro assertables::assert_lt [−][src]
Assert one value is less than another value.
-
When true, return
()
. -
Otherwise, call
panic!
with a message and the values of the expressions with their debug representations.
Examples
assert_lt!(1, 2); //-> ()
// assert_lt!(2, 1); //-> panic!("assertion failed: `assert_lt(left, right)`\n left: `2`\n right: `1`")
This macro has a second form where a custom message can be provided.