Trait rug::ops::BitAndFrom
[−]
[src]
pub trait BitAndFrom<Lhs = Self> { fn bitand_from(&mut self, lhs: Lhs); }
Compound bitwise AND and assignment to the rhs operand.
rhs.bitand_from(lhs)
has the same effect as rhs = lhs & rhs
.
Required Methods
fn bitand_from(&mut self, lhs: Lhs)
Peforms the AND operation.
Examples
use rug::Integer; use rug::ops::BitAndFrom; let mut rhs = Integer::from(0xf0); rhs.bitand_from(0x33); // rhs = 0x33 & 0xf0 assert_eq!(rhs, 0x30);
Implementors
impl BitAndFrom for i8
impl BitAndFrom for i16
impl BitAndFrom for i32
impl BitAndFrom for i64
impl BitAndFrom for isize
impl BitAndFrom for u8
impl BitAndFrom for u16
impl BitAndFrom for u32
impl BitAndFrom for u64
impl BitAndFrom for usize
impl BitAndFrom<Integer> for Integer
impl<'a> BitAndFrom<&'a Integer> for Integer
impl BitAndFrom<i32> for Integer
impl BitAndFrom<u32> for Integer