alloc-from-pool 1.0.5

Single-threaded object pool implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
macro_rules! allocations_ptr {
    ($this:expr) => {{
        #[allow(unused_assignments, unused_mut)]
        let mut ptr = std::ptr::null_mut::<usize>();
        #[cfg(test)]
        {
            ptr = $this.allocations;
        }
        ptr
    }};
}

pub(crate) use allocations_ptr;