8000 `NonZero*` types for `BigInt` and related numbers · Issue #435 · rust-num/num · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
NonZero* types for BigInt and related numbers #435
Open
@ActuallyHappening

Description

@ActuallyHappening

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0