Trait rugint::DivFromAssign
[−]
[src]
pub trait DivFromAssign<Lhs = Self> { fn div_from_assign(&mut self, _: Lhs); }
Divide and assign the result to the rhs operand.
rhs.div_from_assign(lhs)
has the same effect as
rhs = lhs / rhs
.
Examples
use rugint::{DivFromAssign, Integer}; let lhs = Integer::from(50); let mut rhs = Integer::from(5); rhs.div_from_assign(lhs); // rhs = 50 / 5 assert!(rhs == 10);
Required Methods
fn div_from_assign(&mut self, _: Lhs)
Peforms the division.