dashu-float 0.6.0

Arbitrary-precision float math library for Rust with arbitrary base and arbitrary rounding mode. Provides FBig, DBig, and CachedFBig with efficient base conversion, the hexadecimal float format used by C++ programs, and parsing and formatting in base 2-36. Transcendentals (exp, ln, trig, hyperbolic, powers, roots, pi) are correctly rounded; optional serde, rand, num-traits, rkyv, and zeroize.
Documentation
//! Implement zeroize traits.

use crate::{
    fbig::FBig,
    repr::{Context, Repr, Word},
    round::Round,
};
use zeroize::Zeroize;

impl<const B: Word> Zeroize for Repr<B> {
    #[inline]
    fn zeroize(&mut self) {
        self.significand.zeroize();
        self.exponent.zeroize();
    }
}

impl<R: Round> Zeroize for Context<R> {
    #[inline]
    fn zeroize(&mut self) {
        self.precision.zeroize();
    }
}

impl<R: Round, const B: Word> Zeroize for FBig<R, B> {
    #[inline]
    fn zeroize(&mut self) {
        self.repr.zeroize();
        self.context.zeroize();
    }
}