Struct TenorDating
struct TenorDating {
trade_date: NaiveDate,
calendar: Arc<dyn Calendar>,
spot_lag: Period,
business_day: BusinessDayConvention,
}Expand description
What a forward tenor is read against: the trade date, and the template’s spot rule — its calendar, spot lag and business-day convention.
Fields§
§trade_date: NaiveDate§calendar: Arc<dyn Calendar>§spot_lag: Period§business_day: BusinessDayConventionImplementations§
§impl TenorDating
impl TenorDating
fn of(template: &AnyTemplate, trade_date: NaiveDate) -> Option<Self>
fn of(template: &AnyTemplate, trade_date: NaiveDate) -> Option<Self>
The template’s spot rule from template, or None for a family that
dates no swap.
fn dates(&self, tenor: ForwardTenor) -> (NaiveDate, NaiveDate)
fn dates(&self, tenor: ForwardTenor) -> (NaiveDate, NaiveDate)
The effective and termination dates tenor reads to: spot from the
trade date, advanced by the forward start on the calendar, then the
tenor unadjusted — the schedule rolls it.
Trait Implementations§
§impl Clone for TenorDating
impl Clone for TenorDating
§fn clone(&self) -> TenorDating
fn clone(&self) -> TenorDating
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for TenorDating
impl !UnwindSafe for TenorDating
impl Freeze for TenorDating
impl Send for TenorDating
impl Sync for TenorDating
impl Unpin for TenorDating
impl UnsafeUnpin for TenorDating
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