If you look at the Vec implementation (admittedly one of the simplest collections), you will notice:
use alloc::heap::{EMPTY, allocate, reallocate, deallocate};
Unlike C ++, collections are not yet parameterized by the allocator. This is certainly desirable in the long run, but it was not considered necessary for 1.0.
If I remember the discussion correctly, some suggestions depended on HKT (higher types), but that wasnโt all.
So, not yet.
source share