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//!
15
16mod boxed;
17mod map;
18mod multimap;
19mod utils;
20pub mod vec;
21
22pub use boxed::AnyCloneBox;
23pub use map::AnyMap;
24pub use multimap::AnyMultiMap;
25pub use vec::AnyVec;