1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-03 14:37:45 +00:00

factor::Factors: Derive Clone and Debug

Useful for printing out in-progress factorisations when debugging.
This commit is contained in:
nicoo 2020-07-04 12:55:33 +02:00
parent 7bdc81b882
commit e9e263ac66

View file

@ -13,6 +13,7 @@ use std::fmt;
use crate::numeric::{Arithmetic, Montgomery};
use crate::{miller_rabin, rho, table};
#[derive(Clone, Debug)]
pub struct Factors {
f: BTreeMap<u64, u8>,
}