Crates.io | untyped-arena |
lib.rs | untyped-arena |
version | 0.1.1 |
source | src |
created_at | 2022-01-08 22:16:53.8844 |
updated_at | 2022-01-08 22:21:43.501545 |
description | untyped-arena provides an Arena allocator implementation that is safe and untyped with minimal complexity |
homepage | |
repository | https://github.com/Protryon/untyped-arena |
max_upload_size | |
id | 510560 |
size | 7,622 |
untyped-arena provides an Arena allocator implementation that is safe and untyped with minimal complexity
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