Struct rug::rational::MutNumerDenom
[−]
[src]
pub struct MutNumerDenom<'a> { /* fields omitted */ }
Used to borrow the numerator and denominator of a
Rational
number mutably.
The Rational
number is canonicalized
when the borrow ends. See the
Rational::as_mut_numer_denom
method.
Methods
impl<'a> MutNumerDenom<'a>
[src]
fn num(&mut self) -> &mut Integer
Gets the mutable numerator.
fn den(&mut self) -> &mut Integer
Gets the mutable denominator.
fn num_den(&mut self) -> (&mut Integer, &mut Integer)
Gets the mutable numerator and denominator.