Expand description
A small library for creating boxed slices Box<[T]>
.
Functions§
- assume_
all_ ⚠init - Assumes all elements of the elements in
ts
are initialized, with the same semantics asMaybeUninit::assume_init
. - new_
clones - Creates a boxed slice of
len
clones ofval
. - new_
copies - Creates a boxed slice of
len
copies ofval
. - new_
defaults - Creates a boxed slice of
len
elements usingDefault
. - new_
uninit - Creates a boxed slice of uninitialized memory.
- new_
with - Creates a boxed slice of
len
elements using the closuregen
to generate each element, given the element’s index. - new_
zeroed - Creates a boxed slice of zeroed memory.