pochita

Crates.iopochita
lib.rspochita
version0.1.5
sourcesrc
created_at2023-02-10 19:36:26.304036
updated_at2023-03-04 21:27:48.081175
descriptionA allocation arena for Rust.
homepage
repositoryhttps://github.com/nikoraefu/pochita
max_upload_size
id782077
size12,631
kek kek kek (f01dab1e)

documentation

README

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!");
}
Commit count: 0

cargo fmt