A proof-of-concept implementation of (one version of) the storages proposal.
Describing the raw storage API, we have:
Storage
: a storage that can store objectsSliceStorage
: a storage for growable slicesMultipleStorage
: a storage that can store multiple objectsSharedMutabilityStorage
andPinningStorage
Providing a safe wrapper around Storage
use (up to uninit memory):
Useful implementations of Storage
:
InlineStorage
: single storage located in the storage's bytesAllocStorage
: full-featured storage via allocationSmallStorage
: inline storage with a fallback to allocation