Skip to content

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
@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