pub trait BaseAllocator<const GUARANTEED_ALLOCATED: bool = true>:
Allocator
+ Clone
+ Sealed<GUARANTEED_ALLOCATED> { }Expand description
Trait that the base allocator of a Bump is required to implement to make allocations.
Every Allocator that implements Clone automatically implements BaseAllocator when GUARANTEED_ALLOCATED.
When not guaranteed allocated, allocators are additionally required to implement Default.
This trait is sealed: the list of implementors below is total.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.