[−][src]Macro chek::le
Panics if the first expression is not less than or equal to the second.
Requires that the values implement PartialOrd
and Debug
.
Note: is also aliased as chek::less_or_equal!
. A debug-only version is
available as chek::debug_le!
.
Optionally may take an additional message to display on failure, which is formatted using standard format syntax.
Example
chek::le!(3, 4); chek::le!(4, 4); chek::le!(3, 4, "With a message"); chek::le!(3, 4, "With a formatted message: {}", "oh no");