Open
Description
We would like to check the feasibility for using num bigint in order to represent the numerator and denominator for the conversion factors.
- Supporting
std
can be turned off - The data stored in a vector of Bigdigit
Vec<BigDigit>
and we can choose the typeBigDigit
to beu32
oru64
. See the snippet of the code bellow - It supports the basic calculation operations such as
mul
,div
andmod
.
mod big_digit {
/// A [`BigDigit`] is a [`BigUint`]'s composing element.
#[cfg(not(u64_digit))]
pub(crate) type BigDigit = u32;
#[cfg(u64_digit)]
pub(crate) type BigDigit = u64;