macro_rules! not {
($cond:expr) => { ... };
}
Enhances the readability of the negation unary operator (!
).
#[macro_use] extern crate candy;
let v: Vec<String> = default!();
if not!(v.is_empty()) {
panic!("Dis is not possibeuhl!!")
}
The negation operator is more than just a boolean negation;
it is actually a bitwise negation.