tackler_core/kernel.rs
1/*
2 * Tackler-NG 2023-2025
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6pub use settings::Settings;
7pub(crate) mod accumulator;
8pub mod balance;
9pub mod hash;
10pub mod price_lookup;
11pub mod report_item_selector;
12pub mod report_settings;
13pub mod settings;
14
15pub use report_settings::BalanceGroupSettings;
16pub use report_settings::BalanceSettings;
17pub use report_settings::RegisterSettings;
18
19///
20/// Predicate to test if item x is part of set or not
21///
22/// `x` item to be tested
23/// `returns` true if it's selected, false if it's rejected
24pub trait Predicate<T> {
25 fn eval(&self, item: &T) -> bool;
26}