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