pub enum DayCountConvention {
Act365,
Act360,
Thirty360,
}Variants§
Implementations§
Source§impl DayCountConvention
impl DayCountConvention
pub fn num_of_days(&self) -> usize
pub fn get_year_fraction( &self, start_date: NaiveDate, maturity_date: NaiveDate, ) -> f64
Trait Implementations§
Source§impl Clone for DayCountConvention
impl Clone for DayCountConvention
Source§fn clone(&self) -> DayCountConvention
fn clone(&self) -> DayCountConvention
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DayCountConvention
impl Debug for DayCountConvention
Source§impl<'de> Deserialize<'de> for DayCountConvention
impl<'de> Deserialize<'de> for DayCountConvention
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DayCountConvention
impl RefUnwindSafe for DayCountConvention
impl Send for DayCountConvention
impl Sync for DayCountConvention
impl Unpin for DayCountConvention
impl UnsafeUnpin for DayCountConvention
impl UnwindSafe for DayCountConvention
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