mod cell;
mod heap;
mod log;
mod map;
mod region;
mod set;
mod vector;
#[cfg(all(test, not(target_arch = "wasm32")))]
mod tests;
pub use crate::Memory;
use crate::{DefaultMemoryImpl, RuntimeMemory, substrate};
pub use substrate::{
Storable,
log::WriteError as LogWriteError,
storable::{self, Bound},
};
pub use cell::StableCell;
pub use heap::StableMinHeap;
pub use log::StableLog;
pub use map::StableBTreeMap;
pub use region::{BTreeMapRegion, RegionGrowError};
pub use set::StableBTreeSet;
pub use vector::StableVec;
pub type MapIter<'a, K, V, M = DefaultMemoryImpl> =
substrate::btreemap::Iter<'a, K, V, RuntimeMemory<M>>;
pub type SetIter<'a, K, M = DefaultMemoryImpl> = substrate::btreeset::Iter<'a, K, RuntimeMemory<M>>;
pub type LogIter<'a, T, M = DefaultMemoryImpl> =
substrate::log::Iter<'a, T, RuntimeMemory<M>, RuntimeMemory<M>>;