macro_rules! assert_process_status_code_value_lt_x_as_result { ($a_process:expr, $b:expr $(,)?) => { ... }; }
Expand description
Assert a process status code value is less than an expression.
Pseudocode:
a.len() < b
-
If true, return Result
Ok(a โ status โ code โ value). -
Otherwise, return Result
Err(message).
This macro provides the same statements as assert_,
except this macro returns a Result, rather than doing a panic.
This macro is useful for runtime checks, such as checking parameters, or sanitizing inputs, or handling different results in different ways.