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
33
34
35
36
37
//! This crate provides a memory pool with thread-safe
//! memory slots.
//! It is based on smart pointers, that, when dropped,
//! return ownership of their memory slot to the pool.

#![allow(unknown_lints)]
#![allow(renamed_and_removed_lints)]
#![allow(unused_doc_comment)]
#![allow(unused_doc_comments)]

#![warn(missing_copy_implementations,
        missing_debug_implementations,
        missing_docs,
        trivial_numeric_casts,
        unsafe_code,
        unused_extern_crates,
        unused_import_braces,
        unused_qualifications,
        unreachable_pub)]

/// Definition of the smart pointer
pub mod arc_recycled;

/// Definition of the pool structure
pub mod memory_pool;

/// Memory pool
pub use memory_pool::MemoryPool;

/// Initialization function
pub use memory_pool::CreateFn;

/// Smart pointer
pub use arc_recycled::ArcRecycled;

/// Trait to use object in mem-pool
pub use arc_recycled::Recycle;