Skip to content

More flexible division for BoxedUint#1181

Open
andrewwhitehead wants to merge 6 commits intoRustCrypto:masterfrom
andrewwhitehead:upd/boxed-div
Open

More flexible division for BoxedUint#1181
andrewwhitehead wants to merge 6 commits intoRustCrypto:masterfrom
andrewwhitehead:upd/boxed-div

Conversation

@andrewwhitehead
Copy link
Contributor

Follow-up to #1149

This PR also introduces a ToUnsigned trait which helps converting from a &NonZero<T> to an owned Unsigned instance.

RemMixed is also implemented unconditionally for Uint rather than being implemented through a macro for specific sizes.

@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

❌ Patch coverage is 94.47236% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.12%. Comparing base (517e63a) to head (e6b3ae3).

Files with missing lines Patch % Lines
src/traits.rs 73.68% 5 Missing ⚠️
src/uint/ref_type.rs 50.00% 3 Missing ⚠️
src/uint/boxed/div.rs 98.30% 2 Missing ⚠️
src/uint/boxed/mul.rs 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1181      +/-   ##
==========================================
+ Coverage   86.72%   87.12%   +0.40%     
==========================================
  Files         182      182              
  Lines       20390    20492     +102     
==========================================
+ Hits        17683    17854     +171     
+ Misses       2707     2638      -69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
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