Skip to main content

BoxedSlice

Type Alias BoxedSlice 

Source
pub type BoxedSlice<T> = Box<[T]>;
Expand description

Boxed slice that keeps the allocator parameter on nightly.

Box<T> stays allocator-free so Box::new keeps working, but Vec::into_boxed_slice on an allocator-aware Vec produces Box<[T], TursoAllocator> on nightly — fields holding such slices must use this alias instead of Box<[T]>.

Aliased Type§

pub struct BoxedSlice<T>(/* private fields */);