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§
Required Methods§
fn with_alloc_in<A: RawAlloc + 'a>(self, alloc: A) -> Self::NewIn<A>
Provided Methods§
fn with_alloc(self) -> Self::NewIn<Global>
Object Safety§
This trait is not object safe.