many_op

Macro negate

Source
macro_rules! negate {
    ($($e:expr;)*) => { ... };
}
Expand description

Negate all passed variables

ยงExample

use many_op::negate;
let mut testvals = [true, false, true];
negate! {
   testvals[0];
   testvals[2];
};
assert_eq!(testvals, [false, false, false]);