Trait composable_allocators::freelist::Params
source · pub unsafe trait Params {
type Limit: LimitParam;
// Required methods
fn layout(&self) -> Layout;
fn tolerance(&self) -> Layout;
fn limit(&self) -> &Self::Limit;
}Expand description
§Safety
All methods should return constants, i.e. same values on every call.
Returned values should satisfy
tolerance().size() <= layout().size() && tolerance().align() <= layout().align(),
and
layout.size() >= MIN_LAYOUT_SIZE && layout.align() >= MIN_LAYOUT_ALIGN.