ts_mem_pool/
lib.rs

1//! This crate provides a memory pool with thread-safe
2//! memory slots.
3//! It is based on smart pointers, that, when dropped,
4//! return ownership of their memory slot to the pool.
5
6#![allow(unknown_lints)]
7#![allow(renamed_and_removed_lints)]
8#![allow(unused_doc_comment)]
9#![allow(unused_doc_comments)]
10
11#![warn(missing_copy_implementations,
12        missing_debug_implementations,
13        missing_docs,
14        trivial_numeric_casts,
15        unsafe_code,
16        unused_extern_crates,
17        unused_import_braces,
18        unused_qualifications,
19        unreachable_pub)]
20
21/// Definition of the smart pointer
22pub mod arc_recycled;
23
24/// Definition of the pool structure
25pub mod memory_pool;
26
27/// Memory pool
28pub use memory_pool::MemoryPool;
29
30/// Initialization function
31pub use memory_pool::CreateFn;
32
33/// Smart pointer
34pub use arc_recycled::ArcRecycled;
35
36/// Trait to use object in mem-pool
37pub use arc_recycled::Recycle;