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:
parent
5837bc4fc9
commit
6158cd5714
1 changed files with 3 additions and 0 deletions
|
@ -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 {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue