macro_rules! impl_instanced_slab_allocatable {
($ty:ty, $lock:ty, $slab_size:expr) => { ... };
($ty:ty, $lock:ty, $slab_size:expr, $track_obj_count:expr) => { ... };
}Expand description
Macro to implement InstancedSlabAllocated and Recyclable for a struct.
This assumes the struct contains a field slab_origin of type
SlabOrigin<Self, Lock, SLAB_SIZE, TRACK_OBJECT_COUNT>.