nonempty icon indicating copy to clipboard operation
nonempty copied to clipboard

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

Open tmvkrpxl0 opened this issue 11 months ago • 0 comments

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.

tmvkrpxl0 avatar Jan 29 '25 08:01 tmvkrpxl0