A pinned object pool that can store objects of any type.
The pool returns super-powered pointers (Pooled<T>) that can be copied and cloned freely, providing type-safe access to the stored values.
use BlindPool;
// Create a blind pool that can store any type.
let mut pool = new;
// Insert values of different types into the same pool.
let pooled_u64 = pool.insert;
let pooled_i32 = pool.insert;
let pooled_f32 = pool.insert;
// The handles act like super-powered pointers - they can be copied freely.
let pooled_u64_copy = pooled_u64;
// Read data back from the pooled items.
let value_u64 = unsafe ;
let value_u64_copy = unsafe ;
let value_i32 = unsafe ;
assert_eq!;
assert_eq!;
assert_eq!;
More details in the package documentation.
This is part of the Folo project that provides mechanisms for high-performance hardware-aware programming in Rust.