NonEmptyMaybeUninitSlice

Type Alias NonEmptyMaybeUninitSlice 

Source
pub type NonEmptyMaybeUninitSlice<T> = NonEmptySlice<MaybeUninit<T>>;
Expand description

Represents non-empty slices of possibly uninitialized values, NonEmptySlice<MaybeUninit<T>>.

Aliased Type§

pub struct NonEmptyMaybeUninitSlice<T> { /* private fields */ }

Implementations§

Source§

impl<T> NonEmptyMaybeUninitSlice<T>

Source

pub unsafe fn assume_init(self: Box<Self>) -> NonEmptyBoxedSlice<T>

Available on crate features std or alloc only.

Converts Self into initialized NonEmptyBoxedSlice<T>.

§Safety

The caller must guarantee that the items are in initialized state. Calling this when the contents are not fully initialized causes immediate undefined behavior.