flexpool-core 0.2.1

flexpool domain core: exact energy and money units, the Europe/Berlin quarter-hour calendar, portfolio identities and the single quantisation boundary. No I/O, no clock.
Documentation
//! flexpool domain core.
//!
//! Exact quantities ([`units`]), the Europe/Berlin quarter-hour calendar ([`calendar`]),
//! portfolio identities ([`portfolio`]), and the one place where a
//! planner's floating-point number becomes a market quantity ([`mod@quantize`]).
//!
//! This crate reads no clock, performs no I/O and spawns no task: time and data are
//! parameters. `cargo xtask check-purity` enforces it.

#![forbid(unsafe_code)]

pub mod calendar;
pub mod portfolio;
pub mod quantize;
pub mod units;

pub use calendar::{BusinessDay, CalendarError, Quarter};
pub use portfolio::{
    AssetId, IdError, OwnerId, PoolId, ProductId, ReserveGroupId, SliceId, TechnicalUnitId,
};
pub use quantize::{Granularity, QuantizeError, Quantized, RoundDirection, quantize};
pub use units::{Eur, EurPerMwPerH, EurPerMwh, Kw, Kwh, parse_plain};