Skip to content

[Feature Request] How about nonzero version of ::capacity method? #72

@tmvkrpxl0

Description

@tmvkrpxl0

I'm using nonempty crate for managing vulkan buffers. They can't be zero sized, so nonempty is quite useful. I'm using NonEmpty's capacity as a size of new buffer. I currently just use NonZeroU64::new(nonempty.capacity() as usize).unwrap(). It would be convenient if it just returned NonZeroUSize itself.

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