pub trait AllocateBuilder: Send {
type Allocator: Allocate;
// Required method
fn build(self) -> Self::Allocator;
}Expand description
A proto-allocator, which implements Send and can be completed with build.
This trait exists because some allocators contain elements that do not implement
the Send trait, for example Rc wrappers for shared state. As such, what we
actually need to create to initialize a computation are builders, which we can
then move into new threads each of which then construct their actual allocator.