0.1.5 Mar 4, 2023
0.1.4 Mar 4, 2023
0.1.3 Feb 28, 2023

#112 in #arena

MIT/Apache

12KB
196 lines

pochita

A allocation arena for Rust.

Example

use pochita::DroplessArena;

fn main() {
    let mut arena: DroplessArena<u8> = DroplessArena::default();

    assert_eq!(arena.alloc_str("Hello World!"), "Hello World!");
    assert_eq!(arena.alloc_slice_copy(b"Hello World!"), b"Hello World!");
}

Dependencies

~74KB