[][src]Struct alloc_wg::alloc::AbortAlloc

pub struct AbortAlloc<A>(pub A);

An allocator, which wraps another allocator and aborts on OOM.

Trait Implementations

impl<A: BuildAllocRef> BuildAllocRef for AbortAlloc<A>[src]

type Ref = AbortAlloc<A::Ref>

impl<A: DeallocRef> DeallocRef for AbortAlloc<A>[src]

type BuildAlloc = AbortAlloc<A::BuildAlloc>

impl<A: AllocRef> AllocRef for AbortAlloc<A>[src]

type Error = Never

impl<A: ReallocRef> ReallocRef for AbortAlloc<A>[src]

impl<A: Clone> Clone for AbortAlloc<A>[src]

impl<A: Copy> Copy for AbortAlloc<A>[src]

impl<A: Default> Default for AbortAlloc<A>[src]

Auto Trait Implementations

impl<A> Send for AbortAlloc<A> where
    A: Send

impl<A> Sync for AbortAlloc<A> where
    A: Sync

impl<A> Unpin for AbortAlloc<A> where
    A: Unpin

impl<A> UnwindSafe for AbortAlloc<A> where
    A: UnwindSafe

impl<A> RefUnwindSafe for AbortAlloc<A> where
    A: RefUnwindSafe

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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