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-10-26 15:06:27 -05:00
committed by Roy Ivy III
parent 5837bc4fc9
commit 6158cd5714
+3
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 {}