• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kaidokert / fixed-bigint-rs / 29694223553 / 1
98%
main: 97%

Build:
Build:
LAST BUILD BRANCH: agent/use-shared-hardware-workflow
DEFAULT BRANCH: main
Ran 19 Jul 2026 04:07PM UTC
Files 45
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Jul 2026 04:07PM UTC coverage: 97.892% (+0.06%) from 97.833%
29694223553.1

Pull #153

github

kaidokert
Add Display/LowerHex/UpperHex/FromStr/Num to HeaplessBigInt

The string/parse surface, Nct-only, over the value width (len) — the last
num_traits::PrimInt blocker (Num / from_str_radix).

- Display / LowerHex / UpperHex: feature-independent. Digit extraction goes
  through the MachineWord const_num_traits::ToPrimitive supertrait (like
  FixedUInt's to_radix_str), not num_traits, so a heapless bignum is printable
  without opting into num-traits. Hex mirrors FixedUInt (MSB-first, leading-
  zero suppression; zero renders empty, Display special-cases it to "0").
- Num (from_str_radix) / FromStr: gated behind num-traits, reusing FixedUInt's
  ParseIntError constructors (now pub(crate)).
- Inherent div_rem exposed on the Nct carrier (closes a parity gap; Display
  uses it).

Width subtlety: from_str_radix accumulates at CAP width (ret widened up front),
not the minimal width of the intermediate from(digit) values — otherwise
ret*radix+digit would overflow at a single word instead of the carrier's
capacity. That matches FixedUInt<T, CAP>, whose parse width is its N.

Tests: generic Display (carrier_generic) and Num/FromStr (carrier_num_traits)
for both carriers, plus heapless-internal value-width tests (sub-capacity
Display/hex, multi-limb render, wide-value parse round-trip).
Pull Request #153: Display/hex/FromStr/Num for HeaplessBigInt (string surface)

4643 of 4743 relevant lines covered (97.89%)

6140.0 hits per line

Source Files on job 29694223553.1
  • Tree
  • List 45
  • Changed 4
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 29694223553
  • 3e296cf3 on github
  • Prev Job for on feat/heapless-string-surface (#29693523494.1)
  • Next Job for on feat/heapless-string-surface (#29694740326.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc