1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 23:17:46 +00:00

factor::numeric: Document when to remove OverflowingAdd trait

This commit is contained in:
nicoo 2020-07-01 12:55:54 +02:00
parent 3f79be0219
commit 28244413d1

View file

@ -197,6 +197,8 @@ impl<T: Int> Arithmetic for Montgomery<T> {
} }
} }
// NOTE: Trait can be removed once num-traits adds a similar one;
// see https://github.com/rust-num/num-traits/issues/168
pub(crate) trait OverflowingAdd: Sized { pub(crate) trait OverflowingAdd: Sized {
fn overflowing_add_(self, n: Self) -> (Self, bool); fn overflowing_add_(self, n: Self) -> (Self, bool);
} }