Skip to main content

Module arena

Module arena 

Source
๐Ÿ”ฌThis is a nightly-only experimental API. (proc_macro_internals)
Expand description

A minimal arena allocator inspired by rustc_arena::DroplessArena.

This is unfortunately a minimal re-implementation rather than a dependency as it is difficult to depend on crates from within proc_macro, due to it being built at the same time as std.

Re-exportsยง

use std::cell::Cell; ๐Ÿ”’
use std::cell::RefCell; ๐Ÿ”’
use std::mem::MaybeUninit; ๐Ÿ”’
use std::ops::Range; ๐Ÿ”’
use std::cmp; ๐Ÿ”’
use std::ptr; ๐Ÿ”’
use std::slice; ๐Ÿ”’

Structsยง

Arena ๐Ÿ”’ Experimental
A minimal arena allocator inspired by rustc_arena::DroplessArena.