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