2 ms·
What’s up with the Allocator API? Then it could be Vec::push<Allocator>(..), giving it an always-failing one for example.
by kaba0 4y ago
What’s up with the Allocator API? Then it could be Vec::push<Allocator>(..), giving it an always-failing one for example.
- tialaramex 4y agoVec::push<Allocator>(..) makes no sense, the Allocator is a parameter to the Vec type.
- kaba0 4y agoThat’s what I meant to write
- tialaramex 4y agoOK and... ? What purpose does an always-failing allocator for Vec have? I guess maybe it's useful for some unit testing cases, but otherwise it seems pointless.