File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,15 @@ use std::cell::RefCell;
6
6
use std:: marker:: PhantomData ;
7
7
use smallvec:: SmallVec ;
8
8
9
+ /// This declares a list of types which can be allocated by `Arena`.
10
+ ///
11
+ /// The `few` modifier will cause allocation to use the shared arena and recording the destructor.
12
+ /// This is faster and more memory efficient if there's only a few allocations of the type.
13
+ /// Leaving `few` out will cause the type to get its own dedicated `TypedArena` which is
14
+ /// faster and more memory efficient if there is lots of allocations.
15
+ ///
16
+ /// Specifying the `decode` modifier will add decode impls for &T and &[T] where T is the type
17
+ /// listed. These impls will appear in the implement_ty_decoder! macro.
9
18
#[ macro_export]
10
19
macro_rules! arena_types {
11
20
( $macro: path, $args: tt, $tcx: lifetime) => (
You can’t perform that action at this time.
0 commit comments