macro_rules! require_neq {
($a:expr, $b:expr, $err:expr) => { ... };
}Expand description
Require a != b for scalar types.
The counterpart to require_eq!. Use require_keys_neq! for addresses.
ⓘ
require_neq!(new_value, current_value, MyError::NoChange);