Skip to content

Numeric type module constants should be moved into inherent impls #1099

@lilyball

Description

@lilyball

All of the methods provided on our numeric types are part of the inherent impls found in core::num. But the various constants provided for these types (e.g. usize::MAX, i8::MIN, f32::EPSILON) are vended as part of modules named after the types. This seems like it should no longer be necessary now that we have associated constants, and it's confusing because clicking on the documentation for a primitive type (e.g. usize) doesn't show these constants.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions