Derive Debug for MemArena.
This commit is contained in:
parent
276e3d361b
commit
662f02a78d
|
@ -19,6 +19,7 @@ fn alignment_offset(addr: usize, alignment: usize) -> usize {
|
||||||
/// size (the large allocation threshold) are given their own block.
|
/// size (the large allocation threshold) are given their own block.
|
||||||
///
|
///
|
||||||
/// The block size and large allocation threshold size are configurable.
|
/// The block size and large allocation threshold size are configurable.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct MemArena {
|
pub struct MemArena {
|
||||||
blocks: Vec<Vec<u8>>,
|
blocks: Vec<Vec<u8>>,
|
||||||
block_size: usize,
|
block_size: usize,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user