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
28
29
30
31
32
#![doc = include_str!("../README.md")]
#![no_std]
#![deny(unsafe_code)]

pub mod arena;
pub mod cache;
pub mod collections;
pub mod map;
pub mod vector;

pub mod prelude {
    //! The `generational-cache` prelude.
    //!
    //! This module provides a set of commonly used items to alleviate imports.

    pub use super::{
        arena::{Arena, ArenaError},
        cache::{
            lru_cache::{LRUCache, LRUCacheError},
            Cache, Eviction, Lookup,
        },
        collections::list::{Link, LinkedList, ListError},
        map::{impls::alloc_btree_map::AllocBTreeMap, Map},
        vector::{
            impls::{
                alloc_vec::AllocVec,
                array::{Array, ArrayError},
            },
            Vector,
        },
    };
}