• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")]
7 extern crate std;
8 #[cfg(all(feature = "alloc", not(feature = "std")))]
9 extern crate alloc;
10 
11 mod object;
12 mod slice;
13 mod slotmap;
14 #[cfg(feature = "map")]
15 mod map;
16 
17 pub use object::Managed;
18 pub use slice::ManagedSlice;
19 pub use slotmap::{
20     Key as SlotKey,
21     Slot as SlotIndex,
22     SlotMap,
23 };
24 #[cfg(feature = "map")]
25 pub use map::{ManagedMap,
26               Iter as ManagedMapIter,
27               IterMut as ManagedMapIterMut};
28