[][src]Module refpool::fakepool

Fake versions of Pool, PoolRef and PoolBox.

This module provides zero cost wrappers for Box and Rc, as well as a zero sized empty Pool, which are code compatible with their real counterparts. These can be useful if you're writing code that only optionally uses pooled allocation, allowing you to use the same code for both situations, differing only in which versions of Pool and friends you choose to import.

Structs

Pool

A fake Pool which is always empty.

PoolBox

A fake PoolBox which wraps a Box.

PoolRef

A fake PoolRef which wraps an Rc.