1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 13:07:46 +00:00

factor: Introduce a type alias for exponents

This way, we can easily replace u8 with a larger type when moving to support
larger integers.
This commit is contained in:
nicoo 2020-07-29 19:39:50 +02:00 committed by Roy Ivy III
parent 5837bc4fc9
commit 6158cd5714

View file

@ -61,6 +61,9 @@ impl PartialEq for Decomposition {
true
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Factors {
f: BTreeMap<u64, Exponent>,
}
impl Eq for Decomposition {}