[][src]Crate boxchop

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 as MaybeUninit::assume_init.

new_clones

Creates a boxed slice of len clones of val.

new_copies

Creates a boxed slice of len copies of val.

new_defaults

Creates a boxed slice of len elements using Default.

new_uninit

Creates a boxed slice of uninitialized memory.

new_with

Creates a boxed slice of len elements using the closure gen to generate each element, given the element's index.

new_zeroed

Creates a boxed slice of zeroed memory.