managed/lib.rs
1#![no_std]
2
3//! A library that provides a way to logically own objects, whether or not
4//! heap allocation is available.
5
6#[cfg(feature = "std")]
7extern crate std;
8#[cfg(all(feature = "alloc", not(feature = "std")))]
9extern crate alloc;
10
11mod object;
12mod slice;
13mod slotmap;
14#[cfg(feature = "map")]
15mod map;
16
17pub use object::Managed;
18pub use slice::ManagedSlice;
19pub use slotmap::{
20 Key as SlotKey,
21 Slot as SlotIndex,
22 SlotMap,
23};
24#[cfg(feature = "map")]
25pub use map::{ManagedMap,
26 Iter as ManagedMapIter,
27 IterMut as ManagedMapIterMut};