Macro assertables::assure_io_gt [−][src]
Assure one value is greater than another value.
-
When true, return
Ok(true)
. -
When false, return
Ok(false)
. -
Otherwise, return
Err
with a message and the values of the expressions with their debug representations.
Example
let x = assure_io_gt!(2, 1); //-> Ok(true)
let x = assure_io_gt!(1, 2); //-> Ok(false)
This macro has a second form where a custom message can be provided.