pub trait BoundedStore: SlabStore {
// Required method
fn try_alloc(
&self,
value: Self::Item,
) -> Result<Slot<Self::Item>, Full<Self::Item>>;
}Expand description
Bounded (fixed-capacity) storage — provides fallible allocation.
Use try_alloc when you need graceful error handling.
For the common case where capacity exhaustion is a fatal error, use
SlabStore::alloc directly (it panics on bounded-full).