Trait rug::ops::NotAssign [] [src]

pub trait NotAssign {
    fn not_assign(&mut self);
}

Compound bitwise complement and assignement.

Required Methods

Peforms the complement.

Examples

use rug::Integer;
use rug::ops::NotAssign;
let mut i = Integer::from(-42);
i.not_assign();
assert_eq!(i, !-42);

Implementors