oxidd_cache/
lib.rs

1//! Apply cache implementations
2//!
3//! # Feature flags
4#![doc = document_features::document_features!()]
5#![warn(missing_docs)]
6#![deny(unsafe_op_in_unsafe_fn)]
7// We use const assertions for checking configurations and reporting errors in
8// case of obscure targets. To achieve this, we use assertions that evaluate to
9// `true` on usual targets as well as unit let bindings.
10#![allow(clippy::let_unit_value)]
11
12#[cfg(feature = "direct")]
13pub mod direct;
14
15/// Trait for generating and printing statistics
16///
17/// Implementors of this trait in this crate do not print anything unless the
18/// `statistics` feature is enabled.
19pub trait StatisticsGenerator {
20    /// Print statistics to stdout
21    fn print_stats(&self);
22}
23
24mod util;