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 std
Creates a
NonEmptyVec
containing the arguments.vec
alloc
or std
An 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 std
A vector that is guaranteed to not be empty.
Traits
Extends
Iterator
with methods for collecting NonEmptyVec
s as a
stop-gap to retain a fallible Iterator::collect
functionality.Type Definitions
An alias of
NonEmptySlice<T>
if not_empty::Slice<T>
usage is
preferred.Vec
alloc
or std
An alias of
NonEmptyVec<T>
if not_empty::Vec<T>
usage is preferred.