Expand description
Shared utilities: errors, validation helpers, domain newtypes, root-finding.
Modules§
- error
- Error types and validation for finance calculations.
- primitives
- Domain newtypes — zero-cost wrappers that make invalid values harder to pass by accident.
- root_
find - Scalar root-finding helpers used by implied vol and other solvers.
Structs§
- Money
- Finite signed monetary amount (no currency unit — pure magnitude + sign).
- Period
Length - Positive lookback / window length for technical indicators (
usize ≥ 1). - Periods
- Count of compounding / payment periods (
u32). - Positive
Price - Strictly positive finite price (or similar quantity used as a price level).
- Rate
- Periodic or continuous interest / return rate as a decimal (e.g.
0.05= 5%).
Enums§
- Finance
Error - Domain and input errors from finance calculations.
Functions§
- brent_
root - Find a root of continuous
fon bracket[lo, hi](Brent 1973).
Type Aliases§
- Finance
Result - Result alias for fallible finance functions.