[][src]Struct without_alloc::alloc::LeakedAllocation

pub struct LeakedAllocation<'a, T: ?Sized = ()> {
    pub uninit: Uninit<'a, T>,
}

Values of for some allocation including the Uninit.

See Uninit for a better picture of the potential usage of this result.

Fields

uninit: Uninit<'a, T>

Uninit pointer to the region with specified layout.

Methods

impl<'_, Zst> LeakedAllocation<'_, Zst>[src]

pub fn zst_fake_alloc() -> Self[src]

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

impl<'a, T: Debug + ?Sized> Debug for LeakedAllocation<'a, T>[src]

Auto Trait Implementations

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>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.