any_container/lib.rs
1//! Type-erased containers
2//!
3//! This crate provides type-erased container types that allow storing values of different types
4//! behind a common interface.
5//!
6//! # Overview
7//!
8//! The crate provides several type-erased container types:
9//!
10//! - [`AnyMap`] - A map from types to a single value of each type
11//! - [`AnyMultiMap`] - A map from types to multiple values of each type
12//! - [`AnyVec`] - A type-erased vector that stores values of a single type
13//! - [`AnyCloneBox`] - A type-erased box that allows cloning the boxed value
14
15mod boxed;
16mod map;
17mod multimap;
18mod utils;
19pub mod vec;
20
21pub use boxed::AnyCloneBox;
22pub use map::AnyMap;
23pub use multimap::AnyMultiMap;
24pub use vec::AnyVec;