untyped-arena

Crates.iountyped-arena
lib.rsuntyped-arena
version0.1.1
sourcesrc
created_at2022-01-08 22:16:53.8844
updated_at2022-01-08 22:21:43.501545
descriptionuntyped-arena provides an Arena allocator implementation that is safe and untyped with minimal complexity
homepage
repositoryhttps://github.com/Protryon/untyped-arena
max_upload_size
id510560
size7,622
Max Bruce (Protryon)

documentation

README

untyped-arena

untyped-arena provides an Arena allocator implementation that is safe and untyped with minimal complexity

Usage

let arena = Arena::new();
// create our object, and allocate it within `arena`
let my_struct: &mut MyStruct = arena.alloc(MyStruct { ... });
// dropping the arena drops `my_struct`
drop(arena);
// my_struct can no longer be referenced here
Commit count: 2

cargo fmt