Crate non_empty_slice

Crate non_empty_slice 

Source
Expand description

Non-empty slices.

Modules§

boxedstd or alloc
Non-empty Box<[T]>.
cowstd or alloc
Non-empty Cow<'_, [T]>.
iter
Various non-empty iterators over non-empty vectors and slices.
macros
Macros for creating non-empty vectors and slices.
slice
Non-empty [T].
vecstd or alloc
Non-empty Vec<T>.

Macros§

const_non_empty_bytes
Similar to non_empty_bytes! but for const contexts.
const_non_empty_slice
Similar to non_empty_slice! but for const contexts.
non_empty_bytes
Similar to non_empty_slice!, but constructs NonEmptyBytes.
non_empty_slice
Constructs NonEmptySlice from the given slice, panicking if it is empty.
non_empty_vecstd or alloc
Constructs NonEmptyVec<T> containing the provided arguments.

Structs§

EmptyBoxedSlicestd or alloc
Similar to EmptyVec<T>, but contains the empty boxed slice provided.
EmptySlice
Represents errors returned when received slices are empty.
EmptyVecstd or alloc
Similar to EmptySlice, but holds the empty vector provided.
NonEmptySlice
Represents non-empty slices.
NonEmptyVecstd or alloc
Represents non-empty Vec<T> values.

Type Aliases§

EmptyBoxedBytesstd or alloc
Represents empty boxed bytes, EmptyBoxedSlice<u8>.
EmptyByteVecstd or alloc
Represents empty byte vectors, EmptyVec<u8>.
NonEmptyBoxedBytesstd or alloc
Represents non-empty boxed bytes, NonEmptyBoxedSlice<u8>.
NonEmptyBoxedSlicestd or alloc
Represents non-empty boxed slices, Box<NonEmptySlice<T>>.
NonEmptyByteVecstd or alloc
Represents non-empty byte vectors, NonEmptyVec<u8>.
NonEmptyBytes
Represents non-empty bytes, NonEmptySlice<u8>.
NonEmptyCowSlicestd or alloc
Represents non-empty clone-on-write slices, Cow<'a, NonEmptySlice<T>>.