pub struct LeakedAllocation<'a, T: ?Sized = ()> {
pub uninit: Uninit<'a, T>,
}
Expand description
Fields§
§uninit: Uninit<'a, T>
Uninit pointer to the region with specified layout.
Implementations§
Source§impl<Zst> LeakedAllocation<'_, Zst>
impl<Zst> LeakedAllocation<'_, Zst>
Sourcepub fn zst_fake_alloc() -> Self
pub fn zst_fake_alloc() -> Self
Invent a new allocation for a zero-sized type (ZST).
§Panics
This method panics when the type parameter is not a zero sized type.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for LeakedAllocation<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for LeakedAllocation<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T = ()> !Send for LeakedAllocation<'a, T>
impl<'a, T = ()> !Sync for LeakedAllocation<'a, T>
impl<'a, T> Unpin for LeakedAllocation<'a, T>where
T: ?Sized,
impl<'a, T = ()> !UnwindSafe for LeakedAllocation<'a, T>
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