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>
impl<T> NonEmptyMaybeUninitSlice<T>
Sourcepub unsafe fn assume_init(self: Box<Self>) -> NonEmptyBoxedSlice<T>
Available on crate features std or alloc only.
pub unsafe fn assume_init(self: Box<Self>) -> NonEmptyBoxedSlice<T>
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.