Implement Vec
in storage, potentially starting with a new type StorageVec
#2035
Labels
Vec
in storage, potentially starting with a new type StorageVec
#2035
Vec<T>
cannot be used in storage today because its data is heap data. Ideally, we would be able to have a typeVec<T>
that behaves differently depending on whether it's declared inside astorage
block or outside it.storage
block, thenVec<T>
and its methods would behave exactly as they do today.storage
block, thenVec<T>
and its methods would store and access its data from storage instead of the heap.A good starting point however is to implement
StorageVec<T>
with the same API asVec<T>
, but uses persistent storage instead of the heap.The text was updated successfully, but these errors were encountered: