Trait bump_scope::BaseAllocator

source ·
pub trait BaseAllocator<const GUARANTEED_ALLOCATED: bool = true>: Allocator + Clone + Sealed<GUARANTEED_ALLOCATED> { }
Expand description

Trait that any allocator used as a base allocator of a bump allocator needs to implement.

This trait is sealed: the list of implementors below is total.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<A> BaseAllocator for A
where A: Allocator + Clone,

source§

impl<A> BaseAllocator<false> for A
where A: Allocator + Clone + Default,