managed/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#![no_std]

//! A library that provides a way to logically own objects, whether or not
//! heap allocation is available.

#[cfg(feature = "std")]
extern crate std;
#[cfg(all(feature = "alloc", not(feature = "std")))]
extern crate alloc;

mod object;
mod slice;
mod slotmap;
#[cfg(feature = "map")]
mod map;

pub use object::Managed;
pub use slice::ManagedSlice;
pub use slotmap::{
    Key as SlotKey,
    Slot as SlotIndex,
    SlotMap,
};
#[cfg(feature = "map")]
pub use map::{ManagedMap,
              Iter as ManagedMapIter,
              IterMut as ManagedMapIterMut};