Crate toy_pool

Source
Expand description

Pool with reference-counted items

Modules§

iter
Iterator types of the pool
smpsc
Single-threaded mpsc backed by Rc<RefCell<Vec>>, just for the API

Structs§

Handle
Owing index to an item in a Pool
Pool
Dynamic array with reference-counted Handles
Slot
Newtype of u32
WeakHandle
Non-owing index to an item in a Pool

Type Aliases§

RefCount
Number of existable references = RefCount::MAX - 1