Expand description
Slices and vectors that are statically guaranteed to be not empty.
Modules
The prelude imports for
not_empty. The intention is so you can include
use not_empty::prelude::* and have easy access to this crate’s types
and traits.A dynamically-sized view into a contiguous sequence,
[T], that is not
empty.Macros
not_empty_vec
alloc or stdCreates a
NonEmptyVec containing the arguments.vec
alloc or stdAn alias of
not_empty_vec if not_empty::vec usage is preferred.Structs
An error thrown when the input collection is empty.
A slice that is guaranteed to not be empty.
NonEmptyVec
alloc or stdA vector that is guaranteed to not be empty.
Traits
Extends
Iterator with methods for collecting NonEmptyVecs as a
stop-gap to retain a failable Iterator::collect functionality.Type Definitions
An alias of
NonEmptySlice<T> if not_empty::Slice<T> usage is
preferred.Vec
alloc or stdAn alias of
NonEmptyVec<T> if not_empty::Vec<T> usage is preferred.