Hey guys,
I'm wanting to express certain invariants in my rust types while also handling arbitrarily large numbers, and so was refactoring from NonZeroI32 to NonZeroBigInt when I realised that NonZeroBigInt doesn't actually exist, and no analogue to this type already exists.
Even if the compiler doesn't do niche-value optimisation as I think NonZeroI32 and related std library types do, can we still get a type NonZeroBigInt and related types (e.g. NonZeroBigUInt)?
Thanks
Hey guys,
I'm wanting to express certain invariants in my rust types while also handling arbitrarily large numbers, and so was refactoring from
NonZeroI32toNonZeroBigIntwhen I realised thatNonZeroBigIntdoesn't actually exist, and no analogue to this type already exists.Even if the compiler doesn't do niche-value optimisation as I think
NonZeroI32and related std library types do, can we still get a typeNonZeroBigIntand related types (e.g.NonZeroBigUInt)?Thanks