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

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

Compound bitwise complement and assignement.

Examples

use rug::ops::NotAssign;
struct I(i32);
impl NotAssign for I {
    fn not_assign(&mut self) {
        self.0 = !self.0;
    }
}
let mut i = I(42);
i.not_assign();
assert_eq!(i.0, !42);

Required methods

fn not_assign(&mut self)[src]

Peforms the complement.

Examples

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

Implementations on Foreign Types

impl NotAssign for bool[src]

impl NotAssign for i8[src]

impl NotAssign for i16[src]

impl NotAssign for i32[src]

impl NotAssign for i64[src]

impl NotAssign for i128[src]

impl NotAssign for isize[src]

impl NotAssign for u8[src]

impl NotAssign for u16[src]

impl NotAssign for u32[src]

impl NotAssign for u64[src]

impl NotAssign for u128[src]

impl NotAssign for usize[src]

Loading content...

Implementors

impl NotAssign for Integer[src]

Loading content...