#arena #generation #no-std

no-std triple_arena

Arena supporting non-Clone types, deletion, and more

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

Download history 26/week @ 2022-04-24 37/week @ 2022-05-01 39/week @ 2022-05-08 110/week @ 2022-05-15 29/week @ 2022-05-22 69/week @ 2022-05-29 54/week @ 2022-06-05 4/week @ 2022-06-12 53/week @ 2022-06-19 49/week @ 2022-06-26 26/week @ 2022-07-03 16/week @ 2022-07-10 36/week @ 2022-07-17 25/week @ 2022-07-24 42/week @ 2022-07-31 43/week @ 2022-08-07

146 downloads per month
Used in 4 crates (2 directly)

MIT/Apache

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 Arenas 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.

No runtime deps