Expand description
Functions to produce an OwningRef<'_, T>, a.k.a. a Box<T, NoopAllocator<'_>>, from a mutably borrowed MaybeUninit<T> or
ManuallyDrop<T>.
Functions§
- from_
manuallydrop ⚠ - Create a
OwningRef<'a, T>from a&'a mut ManuallyDrop<T>>. - from_
maybeuninit ⚠ - Create a
OwningRef<'a, T>from a&'a mut MaybeUninit<T>>. - from_
maybeuninit_ ⚠slice - Create a
OwningRef<'a, [T]>from a&'a mut [MaybeUninit<T>]>. - from_
maybeuninit_ write - Create a
OwningRef<'a, T>from a&'a mut MaybeUninit<T>>by writing a value into it. - from_
raw ⚠ - Create a
OwningRef<'a, T>from a raw pointer.
Type Aliases§
- Owning
Ref - An owning reference boorrowing a memory location but owning the value in it,
implemented as
Box<T, NoopAllocator<'a>>.