Struct without_alloc::alloc::LeakedAllocation
source · [−]Expand description
Fields
uninit: Uninit<'a, T>
Uninit pointer to the region with specified layout.
Implementations
sourceimpl<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: ?Sized> RefUnwindSafe for LeakedAllocation<'a, T>where
T: RefUnwindSafe,
impl<'a, T = ()> !Send for LeakedAllocation<'a, T>
impl<'a, T = ()> !Sync for LeakedAllocation<'a, T>
impl<'a, T: ?Sized> Unpin for LeakedAllocation<'a, T>
impl<'a, T = ()> !UnwindSafe for LeakedAllocation<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more