Closed bIgBV closed 4 years ago
This commit adds types for supporting guards with arbitrary lifetimes. The new OwnedGuard inner guard type holds NonNull pointers to the item and lifecycle. This is safe as the API is only available when Slab/Pool is wrapped in an Arc
OwnedGuard
NonNull
Slab
Pool
Arc
Got some base types and methods in. Need to implement drop behavior.
This commit adds types for supporting guards with arbitrary lifetimes. The new
OwnedGuard
inner guard type holdsNonNull
pointers to the item and lifecycle. This is safe as the API is only available whenSlab
/Pool
is wrapped in anArc