Expand description
Non-empty containers.
Non-emptiness is generally a very useful tool, when you need inherent guarantees in code but want to avoid repeatedly writing the same checks. This module provides non-empty versions of common container types, such as Vec.
Re-exports§
pub use nonemptyvec::NonEmptyVec;
Modules§
- nonemptyvec
- A non-empty vector type that guarantees at least one element is present. NonEmptyVec has an interface similar to Vec with additional methods to enforce the invariant. Get started with: