mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07: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:
@@ -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 {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user