Struct leak_playground_std::mem::MaybeUninit
source · #[repr(transparent)]pub struct MaybeUninit<T> {
inner: MaybeUninit<T>,
}
Fields§
§inner: MaybeUninit<T>
Implementations§
source§impl<T> MaybeUninit<T>
impl<T> MaybeUninit<T>
pub const fn new(val: T) -> Selfwhere
T: Forget,
pub const unsafe fn new_unchecked(val: T) -> Self
pub const fn uninit() -> Self
pub const fn zeroed() -> Self
pub fn write(&mut self, val: T) -> &mut Twhere
T: Forget,
pub unsafe fn write_unchecked(&mut self, val: T) -> &mut T
pub const fn as_ptr(&self) -> *const T
pub fn as_mut_ptr(&mut self) -> *mut T
pub const unsafe fn assume_init(self) -> T
pub const unsafe fn assume_init_read(&self) -> T
pub unsafe fn assume_init_drop(&mut self)
pub const unsafe fn assume_init_ref(&self) -> &T
pub unsafe fn assume_init_mut(&mut self) -> &mut T
Trait Implementations§
source§impl<T: Copy> Clone for MaybeUninit<T>
impl<T: Copy> Clone for MaybeUninit<T>
source§impl<T> Debug for MaybeUninit<T>
impl<T> Debug for MaybeUninit<T>
impl<T: Copy> Copy for MaybeUninit<T>
impl<T> Forget for MaybeUninit<T>
Auto Trait Implementations§
impl<T> Freeze for MaybeUninit<T>where
T: Freeze,
impl<T> RefUnwindSafe for MaybeUninit<T>where
T: RefUnwindSafe,
impl<T> Send for MaybeUninit<T>where
T: Send,
impl<T> Sync for MaybeUninit<T>where
T: Sync,
impl<T> Unpin for MaybeUninit<T>where
T: Unpin,
impl<T> UnwindSafe for MaybeUninit<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)