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:
parent
3f79be0219
commit
28244413d1
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
fn overflowing_add_(self, n: Self) -> (Self, bool);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue