1 2 3 4 5 6 7 8 9 10 11 12 13 14
use ::mischief::Region;
use crate::alloc::RawAllocator;
/// A `RawAllocator` that allocates inside a single contiguous memory region.
///
/// # Safety
///
/// The pointers returned from a `RawRegionalAllocator`'s `RawAllocator`
/// implementation must always be contained in its associated `Region`.
pub unsafe trait RawRegionalAllocator: RawAllocator {
/// The region type for this allocator.
type Region: Region;
}