2017-01-08 02:28:51 +08:00
|
|
|
#![no_std]
|
|
|
|
|
2017-01-08 02:49:27 +08:00
|
|
|
//! A library that provides a way to logically own objects, whether or not
|
|
|
|
//! heap allocation is available.
|
|
|
|
|
2017-03-05 13:43:12 +08:00
|
|
|
#[cfg(feature = "std")]
|
2017-01-08 02:28:51 +08:00
|
|
|
extern crate std;
|
2017-03-05 13:43:12 +08:00
|
|
|
#[cfg(all(feature = "alloc", not(feature = "std")))]
|
2017-01-08 02:28:51 +08:00
|
|
|
extern crate alloc;
|
|
|
|
|
|
|
|
mod object;
|
|
|
|
mod slice;
|
2020-01-25 09:20:22 +08:00
|
|
|
mod slotmap;
|
2017-11-10 11:22:23 +08:00
|
|
|
#[cfg(feature = "map")]
|
|
|
|
mod map;
|
2017-01-08 02:28:51 +08:00
|
|
|
|
|
|
|
pub use object::Managed;
|
|
|
|
pub use slice::ManagedSlice;
|
2020-01-25 09:20:22 +08:00
|
|
|
pub use slotmap::{
|
|
|
|
Key as SlotKey,
|
|
|
|
Slot as SlotIndex,
|
|
|
|
SlotMap,
|
|
|
|
};
|
2017-11-10 11:22:23 +08:00
|
|
|
#[cfg(feature = "map")]
|
2018-03-06 13:26:29 +08:00
|
|
|
pub use map::{ManagedMap,
|
2018-03-24 11:21:46 +08:00
|
|
|
Iter as ManagedMapIter,
|
|
|
|
IterMut as ManagedMapIterMut};
|