macro_rules! assert_bag_ne_as_result {
($a_collection:expr, $b_collection:expr $(,)?) => { ... };
}Expand description
Assert a bag is not equal to another.
Pseudocode:
(a_collection ⇒ a_bag) ≠ (b_collection ⇒ b_bag)
-
If true, return Result
Ok((a, b)). -
Otherwise, return Result
Err(message).
This macro is useful for runtime checks, such as checking parameters, or sanitizing inputs, or handling different results in different ways.