Crate non_empty_slice

Source
Expand description

Non-empty slices.

Re-exports§

pub use cow::CowSlice;alloc or std
pub use owned::OwnedSlice;alloc or std
pub use empty::Empty;
pub use slice::Slice;
pub use slice::StaticSlice;static
pub use cow::StaticCowSlice;(alloc or std) and static

Modules§

cowalloc or std
Non-empty Cow<'_, [T]>.
empty
Emptiness errors.
macros
Macros used for constructing non-empty slices.
ownedalloc or std
Non-empty Vec<T>.
slice
Non-empty slices.

Macros§

const_borrowed_slicealloc or std
Similar to const_slice, but constructs borrowed CowSlice.
const_slice
Constructs Slice from the given slice, panicking if it is empty.