Crates.io | pochita |
lib.rs | pochita |
version | 0.1.5 |
source | src |
created_at | 2023-02-10 19:36:26.304036 |
updated_at | 2023-03-04 21:27:48.081175 |
description | A allocation arena for Rust. |
homepage | |
repository | https://github.com/nikoraefu/pochita |
max_upload_size | |
id | 782077 |
size | 12,631 |
pochita
A allocation arena for Rust.
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!");
}