Expand description
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 (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.
Re-exports§
pub use calendar::BusinessDay;pub use calendar::CalendarError;pub use calendar::Quarter;pub use portfolio::AssetId;pub use portfolio::IdError;pub use portfolio::OwnerId;pub use portfolio::PoolId;pub use portfolio::ProductId;pub use portfolio::ReserveGroupId;pub use portfolio::SliceId;pub use portfolio::TechnicalUnitId;pub use quantize::Granularity;pub use quantize::QuantizeError;pub use quantize::Quantized;pub use quantize::RoundDirection;pub use quantize::quantize;pub use units::Eur;pub use units::EurPerMwPerH;pub use units::EurPerMwh;pub use units::Kw;pub use units::Kwh;pub use units::parse_plain;
Modules§
- calendar
- The Europe/Berlin quarter-hour calendar.
- portfolio
- Portfolio identities: slugs
[a-z0-9-]{1,64}for owners, pools, reserve groups, technical units, assets, slices and products. The portfolio itself — records, references and their validation — lives inflexpool-portfolio. - quantize
- The single boundary where a planner’s
f64becomes a market quantity. - units
- Exact physical and monetary quantities.