Skip to content

Implement CheckedNeg and CheckedRem - #357

Open
frozenspider wants to merge 2 commits into
rust-num:mainfrom
frozenspider:main
Open

frozenspider wants to merge 2 commits into
rust-num:mainfrom
frozenspider:main

Conversation

@frozenspider

@frozenspider frozenspider commented Sep 23, 2026 •

Copy link
Copy Markdown

This is a pretty simple PR to add CheckedNeg for BigInt as well as CheckedRem for BigInt and BigUint. Since Neg cannot fail, there's no logic involved, and CheckedRem just follow CheckedDiv.
(I need this mostly for BigInt/BigUint to conform to blanket implementations involving those traits.)

@frozenspider frozenspider changed the title Implement CheckedNeg for BigInt Implement CheckedNeg and CheckedRem Sep 23, 2026
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