Skip to content

Conversation

tarcieri
Copy link
Member

Impls num_traits::{Zero, One} for:

  • Limb
  • Uint
  • BoxedUint
  • Wrapping

To impl the traits for Wrapping, it required generic impls of Add and Mul, which are possible thanks to the WrappingAdd/WrappingMul traits.

These subsume the per-type impls that existed previously.

Impls `num_traits::{Zero, One}` for:
- `Limb`
- `Uint`
- `BoxedUint`
- `Wrapping`

To impl the traits for `Wrapping`, it required generic impls of `Add`
and `Mul`, which are possible thanks to the `WrappingAdd`/`WrappingMul`
traits.

These subsume the per-type impls that existed previously.
@tarcieri tarcieri force-pushed the expand-num-traits-impls branch from 80650bf to 9d7c9a3 Compare December 15, 2023 04:25
@tarcieri tarcieri merged commit 95fa6aa into master Dec 15, 2023
@tarcieri tarcieri deleted the expand-num-traits-impls branch December 15, 2023 04:28
This was referenced Dec 15, 2023
@tarcieri tarcieri mentioned this pull request Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant