docs
This commit is contained in:
parent
f568c000fd
commit
ec3ef1bee5
@ -363,8 +363,12 @@ mod alloc_mod {
|
|||||||
///
|
///
|
||||||
/// # Parameters
|
/// # Parameters
|
||||||
///
|
///
|
||||||
/// * `cfg`: Vector of tuples which represent a subpool. The first entry in the tuple specifies the
|
/// * `cfg` - Vector of tuples which represent a subpool. The first entry in the tuple specifies
|
||||||
/// number of memory blocks in the subpool, the second entry the size of the blocks
|
/// the number of memory blocks in the subpool, the second entry the size of the blocks
|
||||||
|
/// * `spill_to_higher_subpools` - Specifies whether data will be spilled to higher subpools
|
||||||
|
/// if the next fitting subpool is full. This is useful to ensure the pool remains useful
|
||||||
|
/// for all data sizes as long as possible, but it might also lead to frequently used
|
||||||
|
/// subpools which were not dimensioned properly chocking larger subpools.
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct StaticPoolConfig {
|
pub struct StaticPoolConfig {
|
||||||
cfg: Vec<(NumBlocks, usize)>,
|
cfg: Vec<(NumBlocks, usize)>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user