Trait rug::ops::NegAssign [] [src]

pub trait NegAssign {
    fn neg_assign(&mut self);
}

Compound negation and assignment.

Required Methods

Peforms the negation.

Examples

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

Implementors