dashu-ratio 0.6.0

Arbitrary-precision rational math library for Rust. Provides RBig and a relaxed variant for fast computation, with small values inlined on the stack. Exact arithmetic, Diophantine approximation of floats, parsing and formatting in any base including repeating-decimal notation, and conversions to and from other dashu types. Optional serde, rand, num-traits, rkyv, and zeroize.
Documentation
use crate::{
    rbig::{RBig, Relaxed},
    repr::Repr,
};
use zeroize::Zeroize;

impl Zeroize for Repr {
    #[inline]
    fn zeroize(&mut self) {
        self.numerator.zeroize();
        self.denominator.zeroize();
    }
}

impl Zeroize for RBig {
    #[inline]
    fn zeroize(&mut self) {
        self.0.zeroize()
    }
}

impl Zeroize for Relaxed {
    #[inline]
    fn zeroize(&mut self) {
        self.0.zeroize()
    }
}