Crate non_empty_slice

Source
Expand description

Non-empty slices.

Re-exports§

pub use slice::Bytes;
pub use slice::Empty;
pub use slice::Slice;
pub use owned::EmptyOwned;std or alloc
pub use owned::OwnedBytes;std or alloc
pub use owned::OwnedSlice;std or alloc

Modules§

macros
Macros for creating non-empty slices in const contexts.
ownedstd or alloc
Non-empty Vec<T>.
slice
Non-empty slices.

Macros§

const_bytes
Similar to const_slice!, but constructs Bytes.
const_slice
Constantly constructs Slice from the given slice, failing compilation if the slice is empty.