Skip to content

Uint: const fn comparisons are pub(crate) #881

@tarcieri

Description

@tarcieri

I was recently trying to add some const fn friendly checks that a field element doesn't overflow the modulus, and while Uint::lt would do what I want, it's currently pub(crate), as are other comparisons like const fn eq and const fn gt.

@fjarri @andrewwhitehead is there a particular reasons these methods aren't exposed? They seem useful

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