Skip to content

Const casting between bnum types #60

@darsor

Description

@darsor

Many of the functions in the crate are const, which is much appreciated. But I can not find a const way to cast between bnum types (for example, from a U1024 to a I256. Obviously the trait-based casting (As), which appears to be the primary approach, can't be const.

Does this feature already exist, and if not, can it be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions