generational_cache/
lib.rs

1#![doc = include_str!("../README.md")]
2#![no_std]
3#![deny(unsafe_code)]
4
5pub mod arena;
6pub mod cache;
7pub mod collections;
8pub mod map;
9pub mod vector;
10
11pub mod prelude {
12    //! The `generational-cache` prelude.
13    //!
14    //! This module provides a set of commonly used items to alleviate imports.
15
16    pub use super::{
17        arena::{Arena, ArenaError},
18        cache::{
19            lru_cache::{LRUCache, LRUCacheError},
20            Cache, Eviction, Lookup,
21        },
22        collections::list::{Link, LinkedList, ListError},
23        map::{impls::alloc_btree_map::AllocBTreeMap, Map},
24        vector::{
25            impls::{
26                alloc_vec::AllocVec,
27                array::{Array, ArrayError},
28            },
29            Vector,
30        },
31    };
32}