count-non-zero
v0.2.0crates.io· RustExtends Rust's Iterator trait to include a `count_non_zero` method, returning an Option<NonZeroUsize> for a more expressive and type-safe way of counting elements. This crate provides a convenient and idiomatic approach to obtaining non-zero element counts from iterators, enhancing code readability and safety by leveraging Rust's type system. Perfect for applications where distinguishing between empty and non-empty iterators is crucial, without the overhead of manual count checks.
The verdict
Deprecated. Don't start a new project on this. yanked
yanked
Live from the crates.io registry · derived rules, not AI
How it scores
MaintenanceDeprecated
PopularityNiche
SecurityClean
LicensePermissive
DepsZero deps
Maintenance
Package author marked it deprecated.
Popularity
0 downloads / week
Security
No known advisories for this version (OSV).
License
Apache-2.0 OR MIT
Dependencies
No runtime dependencies
Recent releases
- 0.2.02 years ago
- 0.1.02 years ago