rithm 14.8.0

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

use super::types::Fraction;

impl<Component: One> One for Fraction<Component> {
    fn one() -> Self {
        Self {
            numerator: Component::one(),
            denominator: Component::one(),
        }
    }
}