rithm 14.6.0

Arbitrary precision arithmetic.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use traiter::numbers::Zero;

use super::types::{BigInt, Sign};

impl<Digit: Zero, const DIGIT_BITNESS: usize> Zero
    for BigInt<Digit, DIGIT_BITNESS>
{
    fn zero() -> Self {
        Self {
            sign: Sign::zero(),
            digits: vec![Digit::zero()],
        }
    }
}