usecrate::mem::boxed::Box;/// Memory allocation errors.
#[derive(Debug, Eq, PartialEq)]pubenumError{/// No more memory available for allocator
OutOfMemory,/// An unknown error occured
Unknown,}/// Pool based allocators.
pubtraitPoolAllocator<T> {/// Allocate and move an element to a pool and return box to value if
/// operation succeeded.
fninsert(&self, element: T)->Result<Box<T>, Error>;// todo: drop
}