Skip to main content

flexpool_core/
lib.rs

1//! flexpool domain core.
2//!
3//! Exact quantities ([`units`]), the Europe/Berlin quarter-hour calendar ([`calendar`]),
4//! portfolio identities ([`portfolio`]), and the one place where a
5//! planner's floating-point number becomes a market quantity ([`mod@quantize`]).
6//!
7//! This crate reads no clock, performs no I/O and spawns no task: time and data are
8//! parameters. `cargo xtask check-purity` enforces it.
9
10#![forbid(unsafe_code)]
11
12pub mod calendar;
13pub mod portfolio;
14pub mod quantize;
15pub mod units;
16
17pub use calendar::{BusinessDay, CalendarError, Quarter};
18pub use portfolio::{
19    AssetId, IdError, OwnerId, PoolId, ProductId, ReserveGroupId, SliceId, TechnicalUnitId,
20};
21pub use quantize::{Granularity, QuantizeError, Quantized, RoundDirection, quantize};
22pub use units::{Eur, EurPerMwPerH, EurPerMwh, Kw, Kwh, parse_plain};