Skip to main content

Crate non_empty_vec

Crate non_empty_vec 

Source
Expand description

Non-empty vector, with non-emptiness ensured by construction.

Macros§

ne_vec
Constructs a NonEmpty vector, similar to std’s vec macro.

Structs§

DrainFilter
EmptyError
Error from trying to convert from an empty Vec.
NonEmpty
Non-empty vector, with non-emptiness ensured by construction.
NonEmptySlice
Wrapper for a slice that is guaranteed to have len > 0. This allows many operations to be infallible, such as first or split_last_mut.