pub struct Inflation {
pub initial: f64,
pub terminal: f64,
pub taper: f64,
pub foundation: f64,
pub foundation_term: f64,
/* private fields */
}
Fields§
§initial: f64
Initial inflation percentage, from time=0
terminal: f64
Terminal inflation percentage, to time=INF
taper: f64
Rate per year, at which inflation is lowered until reaching terminal i.e. inflation(year) == MAX(terminal, initial*((1-taper)^year))
foundation: f64
Percentage of total inflation allocated to the foundation
foundation_term: f64
Duration of foundation pool inflation, in years
Implementations§
Trait Implementations§
impl Copy for Inflation
impl StructuralPartialEq for Inflation
Auto Trait Implementations§
impl Freeze for Inflation
impl RefUnwindSafe for Inflation
impl Send for Inflation
impl Sync for Inflation
impl Unpin for Inflation
impl UnwindSafe for Inflation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more