Skip to main content

Crate non_empty_slice

Crate non_empty_slice 

Source
Expand description

Non-empty slices.

Modules§

boxed
Non-empty Box<[T]>.
cow
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].
vec
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§

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

Type Aliases§

EmptyBoxedBytes
Represents empty boxed bytes, EmptyBoxedSlice<u8>.
EmptyByteVec
Represents empty byte vectors, EmptyVec<u8>.
NonEmptyBoxedBytes
Represents non-empty boxed bytes, NonEmptyBoxedSlice<u8>.
NonEmptyBoxedSlice
Represents non-empty boxed slices, Box<NonEmptySlice<T>>.
NonEmptyByteVec
Represents non-empty byte vectors, NonEmptyVec<u8>.
NonEmptyBytes
Represents non-empty bytes, NonEmptySlice<u8>.
NonEmptyCowSlice
Represents non-empty clone-on-write slices, Cow<'a, NonEmptySlice<T>>.