Expand description
Supported upstream collections with governed memory and an explicit API.
Constructors preserve upstream initialization, panic and persisted-format contracts. These wrappers expose neither raw memory nor unrestricted upstream collections. Use distinct admitted allocations for owning collections. Region views retain a shared lease for disjoint application frames and reload roots per operation. Drop collections and all shared lease owners before reopening. IC Memory enforces one live lease per allocation within each runtime; hosts retain exclusive custody of the backing across runtimes.
Modules§
- storable
- Exact substrate interfaces for backing bounds and record codecs.
Implementing
Memorygrants no allocation authority; constructors require committedRuntimeMemoryleases. Explicit upstream storable identities used by the storage adapter.
Structs§
- BTree
MapRegion - A B-tree view inside one existing, governed allocation lease.
- Bounded
Cell - A stable cell whose writes enforce the record’s declared
Storablebound. - StableB
Tree Map - Governed upstream
BTreeMap; initialization and failures follow upstream contracts. - StableB
Tree Set - Governed upstream
BTreeSet; initialization and failures follow upstream contracts. - Stable
Cell StableCell- Stable
Log - Governed upstream
Log; initialization and failures follow upstream contracts. - Stable
MinHeap - Governed upstream
MinHeap; initialization and failures follow upstream contracts. - Stable
Vec - Governed upstream
Vec; initialization and failures follow upstream contracts.
Enums§
- Bound
- Exact substrate interfaces for backing bounds and record codecs.
Implementing
Memorygrants no allocation authority; constructors require committedRuntimeMemoryleases. States whether the type’s size is bounded or unbounded. - LogWrite
Error - Region
Grow Error RegionGrowError
Traits§
- Memory
- Exact substrate interfaces for backing bounds and record codecs.
Implementing
Memorygrants no allocation authority; constructors require committedRuntimeMemoryleases. Abstraction over a WebAssembly-style linear memory (e.g., stable memory). - Storable
- Exact substrate interfaces for backing bounds and record codecs.
Implementing
Memorygrants no allocation authority; constructors require committedRuntimeMemoryleases. A trait with convenience methods for storing an element into a stable structure.