rustonaut / vec1

Rust `Vec<T>` wrapper that gurantees to contain at least 1 element
Apache License 2.0
88 stars 15 forks source link

Add `vec1.nonzero_len()`? #32

Closed iago-lito closed 6 months ago

iago-lito commented 6 months ago

I guess it would make sense since there is resize_nonzero and truncate_nonzero + all nonzero arithmetics?

rustonaut commented 6 months ago

Makes sense, I added it (but as .len_nonzero()).

(But is not yet published.)

iago-lito commented 6 months ago

Cool, cheers :) Is it supposed to be available soon under some release schedule?

rustonaut commented 6 months ago

done, though there is no specific schedule.

most times changes only are "needed" after a new rust release added a new methods on Vec which takes a &mut self