[][src]Macro candy::not

macro_rules! not {
    ($cond:expr) => { ... };
}

Enhances the readability of the negation unary operator (!).

Example

#[macro_use] extern crate candy;
let v: Vec<String> = default!();
if not!(v.is_empty()) {
    panic!("Dis is not possibeuhl!!")
}

Note:

The negation operator is more than just a boolean negation; it is actually a bitwise negation.