Skip to content

Implement Step for NonZeroUxx #130

@SOF3

Description

@SOF3

Proposal

Problem statement

Ranges of non-zero unsigned integers does not contain zero, and should be step-able.

Motivation, use-cases

I want to iterate over a Range<NonZeroUsize>.

Solution sketches

It might be tricky to implement backward_checked properly since we cannot guarantee that the input usize is less than start.

It is also inconsistent that NonZeroIxx are not implemented.

Links and related work

What happens now?

This issue is part of the libs-api team API change proposal process. Once this issue is filed the libs-api team will review open proposals in its weekly meeting. You should receive feedback within a week or two.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ACP-acceptedAPI Change Proposal is accepted (seconded with no objections)T-libs-apiapi-change-proposalA proposal to add or alter unstable APIs in the standard libraries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions