Trait rug::ops::BitXorFrom [] [src]

pub trait BitXorFrom<Lhs = Self> {
    fn bitxor_from(&mut self, lhs: Lhs);
}

Compound bitwise XOR and assignment to the rhs operand.

rhs.bitxor_from(lhs) has the same effect as rhs = lhs ^ rhs.

Required Methods

Peforms the XOR operation.

Examples

use rug::Integer;
use rug::ops::BitXorFrom;
let mut rhs = Integer::from(0xf0);
rhs.bitxor_from(0x33);
// rhs = 0x33 ^ 0xf0
assert_eq!(rhs, 0xc3);

Implementors