Skip to content

Request: add, sub, and offset for NonNull #90549

Closed as not planned
Closed as not planned
@Lokathor

Description

@Lokathor

Currently, offsetting a non-null pointer is quite cumbersome. It would be better if these pointer methods were provided directly on the NonNull type instead of having to get the inner pointer, do the change, and then call NonNull::new_unchecked on that output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions