Struct leak_playground_std::mem::ManuallyDrop
source · #[repr(transparent)]pub struct ManuallyDrop<T: ?Sized> {
inner: ManuallyDrop<T>,
}
Fields§
§inner: ManuallyDrop<T>
Implementations§
source§impl<T> ManuallyDrop<T>
impl<T> ManuallyDrop<T>
pub const fn new(value: T) -> Selfwhere
T: Forget,
pub const unsafe fn new_unchecked(value: T) -> Self
pub unsafe fn take(slot: &mut ManuallyDrop<T>) -> T
pub const fn into_inner(slot: ManuallyDrop<T>) -> T
Trait Implementations§
source§impl<T: Clone + ?Sized> Clone for ManuallyDrop<T>
impl<T: Clone + ?Sized> Clone for ManuallyDrop<T>
source§fn clone(&self) -> ManuallyDrop<T>
fn clone(&self) -> ManuallyDrop<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Default + ?Sized> Default for ManuallyDrop<T>
impl<T: Default + ?Sized> Default for ManuallyDrop<T>
source§fn default() -> ManuallyDrop<T>
fn default() -> ManuallyDrop<T>
Returns the “default value” for a type. Read more
source§impl<T: ?Sized> Deref for ManuallyDrop<T>
impl<T: ?Sized> Deref for ManuallyDrop<T>
source§impl<T: ?Sized> DerefMut for ManuallyDrop<T>
impl<T: ?Sized> DerefMut for ManuallyDrop<T>
source§impl<T: PartialEq + ?Sized> PartialEq for ManuallyDrop<T>
impl<T: PartialEq + ?Sized> PartialEq for ManuallyDrop<T>
source§fn eq(&self, other: &ManuallyDrop<T>) -> bool
fn eq(&self, other: &ManuallyDrop<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd + ?Sized> PartialOrd for ManuallyDrop<T>
impl<T: PartialOrd + ?Sized> PartialOrd for ManuallyDrop<T>
source§fn partial_cmp(&self, other: &ManuallyDrop<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &ManuallyDrop<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy + ?Sized> Copy for ManuallyDrop<T>
impl<T: Eq + ?Sized> Eq for ManuallyDrop<T>
impl<T: ?Sized> Forget for ManuallyDrop<T>
impl<T: ?Sized> StructuralPartialEq for ManuallyDrop<T>
Auto Trait Implementations§
impl<T> Freeze for ManuallyDrop<T>
impl<T> RefUnwindSafe for ManuallyDrop<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for ManuallyDrop<T>
impl<T> Sync for ManuallyDrop<T>
impl<T> Unpin for ManuallyDrop<T>
impl<T> UnwindSafe for ManuallyDrop<T>where
T: UnwindSafe + ?Sized,
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
)