Trait flex_alloc::storage::WithAlloc

source ·
pub trait WithAlloc<'a>: Sized {
    type NewIn<A: 'a>;

    // Required method
    fn with_alloc_in<A: RawAlloc + 'a>(self, alloc: A) -> Self::NewIn<A>;

    // Provided method
    fn with_alloc(self) -> Self::NewIn<Global> { ... }
}

Required Associated Types§

source

type NewIn<A: 'a>

Required Methods§

source

fn with_alloc_in<A: RawAlloc + 'a>(self, alloc: A) -> Self::NewIn<A>

Provided Methods§

source

fn with_alloc(self) -> Self::NewIn<Global>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, T: 'a> WithAlloc<'a> for ArrayStorage<&'a mut [MaybeUninit<T>]>

source§

type NewIn<A: 'a> = SpillStorage<'a, &'a mut [MaybeUninit<T>], A>

source§

impl<'a, T: 'a, const N: usize> WithAlloc<'a> for &'a mut ArrayStorage<[MaybeUninit<T>; N]>

source§

type NewIn<A: 'a> = SpillStorage<'a, &'a mut [MaybeUninit<T>], A>

source§

impl<'a, T: 'static, const N: usize> WithAlloc<'a> for &'a mut ByteStorage<T, N>

source§

type NewIn<A: 'a> = SpillStorage<'a, &'a mut ByteStorage<T, N>, A>