opool icon indicating copy to clipboard operation
opool copied to clipboard

Remove `P: PoolAllocator` bounds on pools

Open v0x0g opened this issue 8 months ago • 1 comments

Summary of Changes

  • Move the bounds to the implementations, not the struct
  • Non-breaking change
  • Makes it nicer to use the structs in other places now.

Reasoning

This makes the pool object a bit nicer to use, since the P: PoolAllocator<T> bound is no longer present in the struct definition, so it removes the restrictions when using it as a field inside another struct.

v0x0g avatar Jun 26 '24 00:06 v0x0g