8 releases (5 breaking)
Uses new Rust 2021
0.6.0 | Aug 2, 2022 |
---|---|
0.5.0 | Jun 1, 2022 |
0.4.1 | Apr 9, 2022 |
0.4.0 | Jan 17, 2022 |
0.1.0 | Jun 2, 2021 |
#83 in Memory management
146 downloads per month
Used in 4 crates
(2 directly)
74KB
1.5K
SLoC
Triple Arena
Provides very flexible arena type Arena<T, P>
and pointer type Ptr
. The arena supports
non-Clone T
, optional generation counters (zero-cost when omitted), and zero-cost arena
differentiation. The generic P
in P
is a marker that can be used to guard against using the
wrong Ptr
in the wrong Arena
when multiple Arena
s are in use. The P
can optionally include a
generation number, in which the arena will use a generation counter to prevent invalidated pointers
from working.
No unsafe
is used. no_std
compatible.