Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring Checked* traits in line with Wrapping* #434

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

tarcieri
Copy link
Member

This crate defines its own Checked* traits in order to use CtOption<T> rather than Option<T>, however it gets its Wrapping* traits from num-bigint.

This brings the Checked* traits more in line with Wrapping*, automatically taking a reference to the rhs parameter, which eliminates the need to use HRTBs in Integer's definition.

This crate defines its own `Checked*` traits in order to use
`CtOption<T>` rather than `Option<T>`, however it gets its `Wrapping*`
traits from `num-bigint`.

This brings the `Checked*` traits more in line with `Wrapping*`,
automatically taking a reference to the `rhs` parameter, which
eliminates the need to use HRTBs in `Integer`'s definition.
@tarcieri tarcieri force-pushed the checked-trait-revamp branch from 9c9421d to 23f607e Compare December 15, 2023 05:20
@tarcieri tarcieri merged commit a4c3596 into master Dec 15, 2023
16 checks passed
@tarcieri tarcieri deleted the checked-trait-revamp branch December 15, 2023 05:25
@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