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
fn bitxor_from(&mut self, lhs: Lhs)
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
impl BitXorFrom for i8
impl BitXorFrom for i16
impl BitXorFrom for i32
impl BitXorFrom for i64
impl BitXorFrom for isize
impl BitXorFrom for u8
impl BitXorFrom for u16
impl BitXorFrom for u32
impl BitXorFrom for u64
impl BitXorFrom for usize
impl BitXorFrom<Integer> for Integer
impl<'a> BitXorFrom<&'a Integer> for Integer
impl BitXorFrom<i32> for Integer
impl BitXorFrom<u32> for Integer