1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Governed collections with an explicit API.
//!
//! Storage owns every collection engine and its current format. Constructors
//! enforce explicit creation and loading without exposing raw backing.
//! 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.
//! Framing admission and explicit reservation can return typed errors. Collection
//! engine and codec failures trap. Successful-call `Result` signatures remain;
//! native callers must discard the runtime after a mutation panic.
//! The allocation runtime enforces one live lease per allocation;
//! hosts retain exclusive custody of the backing across runtimes.
// Collection APIs require public documentation in addition to workspace Clippy.
use crateDefaultMemoryImpl;
pub use crate;
/// Storage-owned interfaces for backing bounds and record codecs.
/// Implementing `Memory` grants no allocation authority; constructors require
/// committed `RuntimeMemory` leases.
pub use crate::;
pub use CollectionError;
pub use ;
pub use StableBTreeMap;
pub use StableBTreeSet;
pub use StableCell;
pub use StableVec;
/// Ordered map iterator retaining the collection borrow.
pub use ;
/// Ordered set iterator retaining the collection borrow.
pub type SetIter<'a, K, M = DefaultMemoryImpl> = SetIter;