pub trait Rates {
// Required methods
fn get_implied_rates(&self) -> f64;
fn get_maturity_date(&self) -> NaiveDate;
fn get_rate(&self) -> f64;
fn get_maturity_discount_factor(&self) -> f64;
fn get_day_count(&self) -> &DayCountConvention;
fn set_term_structure(&mut self, term_structure: TermStructure);
}Required Methods§
fn get_implied_rates(&self) -> f64
fn get_maturity_date(&self) -> NaiveDate
fn get_rate(&self) -> f64
fn get_maturity_discount_factor(&self) -> f64
fn get_day_count(&self) -> &DayCountConvention
fn set_term_structure(&mut self, term_structure: TermStructure)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".