Trait gmp_mpfr::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 gmp_mpfr::{DivFromAssign, Float, FromPrec};
let mut f = Float::from_prec(1.5, 53);
f.div_from_assign(3);
// f = 3 / 1.5
assert!(f == 2);

Required Methods

Peforms the division.

Implementors